服务器websocket连接失败
如题,⽣产环境websocket连接失败,前端报错:WebSocket connection to 'wss://im.tnshow:5260/' failed:
因为原来是可以⽤的,排除代码和防⽕墙安全组的问题。百度⼀下解决问题⽅式
location /wss/ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
仍然没有解决我的问题,查后台⽇志:
2021-05-3117:35:40,989 ReadCompletionHandler[284]: server:NULL, client:113.89.3.89:6823, javax.ssl.SSLException: Received fatal alert: certificate_unknownjava.nio.HeapByteBuffer[pos=7 lim=7 cap= javax.ssl.SSLException: Received fatal alert: certificate_unknown
javax.ssl.SSLException: Received fatal alert:
是因为SSL证书更新,没有同步到这个项⽬所致。
前端websocket怎么用
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论