-
nginx 反向代理问题
2022-11-15 18:32@nanci 试试这个
location / {
proxy_pass http://192.168.1.254:6806;
#加入下面代码即可
proxy_connect_timeout 30s; #可选
proxy_read_timeout 86400s; #可选
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;}