WSS创建失败,文档貌似就这几个配置,折腾半天,没有搞定
nginx 配置如下:
location /wss{
proxy_pass http://127.0.0.1:2346;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
rewrite /wss/(.*) /$1 break;
proxy_redirect off;
}
访问:
wss://portal.*****.com/wss
连接不上,提示 Could not connect to wss://portal.*****.com/wss
文档里没有