nginx配置了域名和ssl,使用https已生效,客戶端連接使用wss協(xié)議連接就失?。簾o法建立到 wss://caishenzhipai.top:2345/ 服務(wù)器的連接。 服務(wù)端還需要配置什么嗎
location /wss
{
proxy_pass http://127.0.0.1:8282;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
}
這樣配置, 連接中把端口去掉