From 0b2d39ea7c3e8de3f8826e1dd14828d1719cc886 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 4 Dec 2024 16:58:51 +0100 Subject: [PATCH] Fix websocket access for wekan --- .../Software/docker/services/wekan/main.fish | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/Common/Software/docker/services/wekan/main.fish b/scripts/Common/Software/docker/services/wekan/main.fish index 788cf829..6b01e21f 100755 --- a/scripts/Common/Software/docker/services/wekan/main.fish +++ b/scripts/Common/Software/docker/services/wekan/main.fish @@ -27,7 +27,19 @@ begin end function getServiceLocations -V service - printf "%s\0" "$service" / + printf "%s\0" \ + "$service" / "static files" \ + "$service" "~ ^/sockjs/.*/websocket\$" "Websocket" + end + + function getExtraLocationSettings -a domain s location -V service + if [ "$location" != "/" ] + printf "%s\n" \ + '# Websocket' \ + "proxy_http_version 1.1;" \ + 'proxy_set_header Upgrade $http_upgrade;' \ + 'proxy_set_header Connection "upgrade";' + end end runInstaller --force $argv