WSS創(chuàng)建失敗,文檔貌似就這幾個配置,折騰半天,沒有搞定
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