diff --git a/roles/reverse-proxy/templates/reverse-proxy.conf b/roles/reverse-proxy/templates/reverse-proxy.conf index e2e3068..c2e4ab0 100644 --- a/roles/reverse-proxy/templates/reverse-proxy.conf +++ b/roles/reverse-proxy/templates/reverse-proxy.conf @@ -101,6 +101,13 @@ server { location / { proxy_pass http://localhost:{{ ports['hedgedoc'] }}; } + + location /socket.io/ { + proxy_pass http://localhost:{{ ports['hedgedoc'] }}; + + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $http_connection; + } }