From 2cf429ab168696f5e4040757f9aed38859a9c58e Mon Sep 17 00:00:00 2001 From: Viyurz <128215328+Viyurz@users.noreply.github.com> Date: Sat, 17 Feb 2024 19:37:21 +0100 Subject: [PATCH] Reverse proxy/Hedgedoc: Enable WebSocket --- roles/reverse-proxy/templates/reverse-proxy.conf | 7 +++++++ 1 file changed, 7 insertions(+) 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; + } }