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";
}
}