location /wss{
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 600;
}
nginx workerman 转发 wss
最新推荐文章于 2024-06-07 23:52:39 发布
本文详细介绍了一个关于WebSocket代理的配置示例,重点讲解了location/wss块中如何通过proxy_pass、proxy_set_header等指令实现从http到WebSocket的升级,并设置了超时限制。
2579

被折叠的 条评论
为什么被折叠?



