diff options
author | Augustin Borsu <a.borsu@gmail.com> | 2015-11-26 15:26:58 +0100 |
---|---|---|
committer | Matej Cotman <cotman.matej@gmail.com> | 2015-12-02 20:37:33 +0100 |
commit | 9d5bf282c7fe5fe9ee88bd4f31953a42fa708046 (patch) | |
tree | 096870d3b80fb8d9e84e4fca1b692673e82f965c /nixos/modules/services/web-servers/apache-httpd | |
parent | 16fd6c1cf0d9386363c26246c2100c88fd3f2fdf (diff) | |
download | nixlib-9d5bf282c7fe5fe9ee88bd4f31953a42fa708046.tar nixlib-9d5bf282c7fe5fe9ee88bd4f31953a42fa708046.tar.gz nixlib-9d5bf282c7fe5fe9ee88bd4f31953a42fa708046.tar.bz2 nixlib-9d5bf282c7fe5fe9ee88bd4f31953a42fa708046.tar.lz nixlib-9d5bf282c7fe5fe9ee88bd4f31953a42fa708046.tar.xz nixlib-9d5bf282c7fe5fe9ee88bd4f31953a42fa708046.tar.zst nixlib-9d5bf282c7fe5fe9ee88bd4f31953a42fa708046.zip |
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.
Diffstat (limited to 'nixos/modules/services/web-servers/apache-httpd')
-rw-r--r-- | nixos/modules/services/web-servers/apache-httpd/owncloud.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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" => "", |