From d36f95b8c520835fe2d4a2a6cf583a1f5c041a4f Mon Sep 17 00:00:00 2001 From: Zachar <38113357+Zachar2@users.noreply.github.com> Date: Thu, 10 Sep 2020 21:17:38 +0200 Subject: [PATCH] Update collabora.subdomain.conf.sample It started working for me only after those changes. I also had to turn off Rocket Loader for Collabora subdomain in Cloudflare. --- collabora.subdomain.conf.sample | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/collabora.subdomain.conf.sample b/collabora.subdomain.conf.sample index 4282b31..3c36c8b 100644 --- a/collabora.subdomain.conf.sample +++ b/collabora.subdomain.conf.sample @@ -49,8 +49,22 @@ server { set $upstream_proto https; proxy_pass $upstream_proto://$upstream_app:$upstream_port; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + client_max_body_size 50M; proxy_set_header Host $http_host; - proxy_read_timeout 36000s; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Frame-Options SAMEORIGIN; + proxy_buffers 256 16k; + proxy_buffer_size 16k; + client_body_timeout 60; + send_timeout 300; + lingering_timeout 5; + proxy_connect_timeout 90; + proxy_send_timeout 300; + proxy_read_timeout 90s; } # download, presentation and image upload