nginx配置wss协议
<p>Nginx 配置域名支持 WSS
不用废话,直接在配置 HTTPS 域名位置加入如下配置:</p>
<p>location /websocket {
proxy_pass <a href="http://backend">http://backend</a>;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}</p>