Nginx setting to allow wss sockets to connect
-
Having run across this at a previous robotics project doing Tele-existence, things weren't connecting well.
General idea of the config:
https + proxy pass + virtual host
Nginx as a proxy causes a failure of wss:// connections to the backend server.
Add these parameters to the proxy section :
proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection “upgrade”; proxy_set_header Host $host;
Voila
-
This looks like a similar issue with wss as in https://forum.cloudron.io/topic/3414/transcode-after-import-fails/23?_=1606977647141?