From 0244be7ad23783e62843c2a37f5cf34a74ddde7e Mon Sep 17 00:00:00 2001 From: ibizaman Date: Fri, 11 Aug 2023 21:35:27 -0700 Subject: [PATCH] fix some content-security-policy errors in nextcloud --- modules/nextcloud-server.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/nextcloud-server.nix b/modules/nextcloud-server.nix index 34d3471..8d1b556 100644 --- a/modules/nextcloud-server.nix +++ b/modules/nextcloud-server.nix @@ -72,6 +72,9 @@ in # Adds appropriate nginx rewrite rules. webfinger = true; + # Very important for a bunch of scripts to load correctly. Otherwise you get Content-Security-Policy errors. See https://docs.nextcloud.com/server/13/admin_manual/configuration_server/harden_server.html#enable-http-strict-transport-security + https = true; + extraOptions = { "overwrite.cli.url" = "https://" + fqdn; "overwritehost" = fqdn;