nginx 设置 wss 反向代理

96
Spooking
2021-03-04 10:16:59 字数 22 阅读 130

location /wss {
proxy_pass http://127.0.0.1:10086;
proxy_http_version 1.1;
proxy_set_header Upgrade http_upgrade; proxy_set_header Connection "Upgrade"; proxy_set_header X-real-ipremote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
}

编程&开发
备案号:陕ICP备16003225号-1