location /socket.io/ {
proxy_pass http://127.0.0.1:3001; # 帮我告诉ta我想ta
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
- 注意点:
- 注意下你socket服务的端口号是不是3001
- 服务器端口放行3001
- 即时通讯演示地址 https://yyds.it98k.cn/dist
网友评论