nginx配置websocket反向代理,可以用于web端的ssh服务
nginx配置websocket反向代理
#5.配置wss接口
location /webSocketServer {
proxy_pass http://localhost:8088;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 600s;
原创
2022-05-30 18:13:54 ·
403 阅读 ·
0 评论