From 71b18dd9bbde901e6064e510e64fc1fe73260632 Mon Sep 17 00:00:00 2001 From: ryester27 <17807258+ryester27@users.noreply.github.com> Date: Sun, 27 Sep 2020 19:09:48 -0400 Subject: [PATCH] Set extra headers for websocket URIs Was not able to get Collabora working with Nextcloud without these edits --- collabora.subdomain.conf.sample | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/collabora.subdomain.conf.sample b/collabora.subdomain.conf.sample index 4282b31..caebc04 100644 --- a/collabora.subdomain.conf.sample +++ b/collabora.subdomain.conf.sample @@ -49,6 +49,8 @@ server { set $upstream_proto https; 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_read_timeout 36000s; } @@ -72,6 +74,8 @@ server { set $upstream_proto https; 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_read_timeout 36000s; }