From 4da060986aa7ed5faa7f94b30042575a00f7c79a Mon Sep 17 00:00:00 2001 From: ibizaman Date: Fri, 24 Nov 2023 02:16:36 -0800 Subject: [PATCH] fix nextcloud to properly disable debug --- modules/services/nextcloud-server.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/services/nextcloud-server.nix b/modules/services/nextcloud-server.nix index 2f633ed..d8d00de 100644 --- a/modules/services/nextcloud-server.nix +++ b/modules/services/nextcloud-server.nix @@ -104,9 +104,8 @@ in "trusted_domains" = [ fqdn ]; "overwriteprotocol" = "https"; # Needed if behind a reverse_proxy "overwritecondaddr" = ""; # We need to set it to empty otherwise overwriteprotocol does not work. - } // lib.optionalAttrs cfg.debug { - "debug" = true; - "filelocking.debug" = true; + "debug" = cfg.debug; + "filelocking.debug" = cfg.debug; }; phpOptions = {