Set extra headers for websocket URIs

Was not able to get Collabora working with Nextcloud without these edits
This commit is contained in:
ryester27 2020-09-27 19:09:48 -04:00 committed by GitHub
commit 71b18dd9bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,8 @@ server {
set $upstream_proto https; set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port; proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_read_timeout 36000s; proxy_read_timeout 36000s;
} }
@ -72,6 +74,8 @@ server {
set $upstream_proto https; set $upstream_proto https;
proxy_pass $upstream_proto://$upstream_app:$upstream_port; proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_read_timeout 36000s; proxy_read_timeout 36000s;
} }