diff --git a/conf/nginx.conf b/conf/nginx.conf index 7937e6b..a742919 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,3 +7,12 @@ location __PATH__/ { # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } + +location /live/websocket { + proxy_pass http://127.0.0.1:__PORT__; + + # these configurations are necessary to proxy WebSocket requests + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; +}