From dda1837540eefe6f5a088d2c283140172f1569d7 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 26 Feb 2021 18:00:13 +0200 Subject: [PATCH] Another Nextcloud and Collabora Online workaround. This time it's mixed content. --- conf.d/nextcloud.shore.co.il.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf.d/nextcloud.shore.co.il.conf b/conf.d/nextcloud.shore.co.il.conf index 2ba48e1..525fa44 100644 --- a/conf.d/nextcloud.shore.co.il.conf +++ b/conf.d/nextcloud.shore.co.il.conf @@ -27,8 +27,12 @@ server { include snippets/proxy-headers.conf; proxy_hide_header X-Frame-Options; client_max_body_size 512m; + # Temporary measure to test a Collabora Online issue, should not be left # as is. proxy_hide_header content-security-policy; + # Another workaround, this time mixed content and HSTS. + sub_filter_once on; + sub_filter 'http://nextcloud.shore.co.il' 'https://nextcloud.shore.co.il'; } } -- GitLab