nginx反向代理socket

配置如下:

server {
listen 80;
server_name wss.csgodna.com;
location / {
proxy_pass http://127.0.0.1:4000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}

posted @ 2021-08-06 14:28  童年的回忆  阅读(693)  评论(0编辑  收藏  举报
如果本博客解决了您的问题,可以微信支付宝打赏鼓励一下作者哦,在此表示感谢