Fix websocket access for wekan

This commit is contained in:
Manuel Thalmann 2024-12-04 16:58:51 +01:00
parent 30254ea01c
commit 0b2d39ea7c

View file

@ -27,7 +27,19 @@ begin
end end
function getServiceLocations -V service 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 end
runInstaller --force $argv runInstaller --force $argv