From 9d5bf282c7fe5fe9ee88bd4f31953a42fa708046 Mon Sep 17 00:00:00 2001 From: Augustin Borsu Date: Thu, 26 Nov 2015 15:26:58 +0100 Subject: owncloud httpd-service: fix trusted_domain when unset When an empty string was given as trusted_domain, the trusted domain was set to be empty string instead of not beeing set. --- nixos/modules/services/web-servers/apache-httpd/owncloud.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/services/web-servers/apache-httpd') diff --git a/nixos/modules/services/web-servers/apache-httpd/owncloud.nix b/nixos/modules/services/web-servers/apache-httpd/owncloud.nix index f69e21418050..1484f1750353 100644 --- a/nixos/modules/services/web-servers/apache-httpd/owncloud.nix +++ b/nixos/modules/services/web-servers/apache-httpd/owncloud.nix @@ -70,7 +70,7 @@ let "proxyuserpwd" => "", /* List of trusted domains, to prevent host header poisoning ownCloud is only using these Host headers */ - 'trusted_domains' => array('${config.trustedDomain}'), + ${if config.trustedDomain != "" then "'trusted_domains' => array('${config.trustedDomain}')," else ""} /* Theme to use for ownCloud */ "theme" => "", -- cgit 1.4.1