配置文件里添加
add_header Content-Security-Policy upgrade-insecure-requests;
例如
location /
{
proxy_pass http://192.168.0.5:22222;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header Content-Security-Policy upgrade-insecure-requests;
add_header X-Cache $upstream_cache_status;
#Set Nginx Cache
proxy_ignore_headers Set-Cookie Cache-Control expires;
proxy_cache cache_one;
proxy_cache_key $host$uri$is_args$args;
proxy_cache_valid 200 304 301 302 1m;
}




![xunsearch编译[Makefile:793: bufferevent_openssl.lo] Error 1错误解决方法](https://www.huojunqiang.com/wp-content/themes/begin/prune.php?src=https://www.huojunqiang.com/wp-content/uploads/2018/10/微信公众号185x185.png&w=280&h=210&a=&zc=1)


