嘿,夥計們我在nginx服務器上通過letsencrypt證書在客戶端上使用python龍捲風websocket和angular-websocket。 SSL證書的最後更新後,WebSocket的是無法創建通過Letsencrypt SSL證書的WebSocket連接失敗
WebSocket連接到「WSS://myDomain.com:9999/XYZ」錯誤連接失敗:打開的WebSocket握手被取消
我的nginx的配置有
location/{
proxy_pass http://unix:/home/ubuntu/run/gunicorn.sock;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/myDomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/myDomain.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
我需要做的nginx的配置什麼變化? P.S. - 我試過創建另一個證書,但它仍然無效。
鏈接應該是'wss:// myDomain.com/xyz'而不是'wss://myDomain.com:9999/xyz'我相信,因爲SSL會在443上運行? –