Fix websocket access for wekan
This commit is contained in:
parent
5928b940f8
commit
e25fb820d3
1 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue