Nginx setting to allow wss sockets to connect
robi last edited by
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;
Yup. FWIW, this is already enabled in Cloudron's nginx configuration for apps.
This looks like a similar issue with wss as in https://forum.cloudron.io/topic/3414/transcode-after-import-fails/23?_=1606977647141?
@girish ok, sorry, I think I was reading to fast and recognized wss: is an 503 error in PeerTube.
Does the PeerTube app also has these settings?