nixos/nextcloud: fix inclusion of trusted_domains in override config
Regression I caused with 3944aa051ca503e255a9da5cf03a58faf6dec268, sorry
for this! The Nextcloud installer broke back then because
`trusted_domains` was an empty value by default (a.k.a an empty array)
which seemed to break the config merger of Nextcloud as Nextcloud
doesn't do recursive merging and now no domain was trusted because of
that, hence Nextcloud was unreachable for the `curl` call.
commitc5e515f5c7bd0bfdd1ab90500225e2d26f5a6cbb
authorMaximilian Bosch <maximilian@mbosch.me>
dateTue 23 Jul 2019, 13:15 (7 years ago)
parentf99063f
nixos/modules/services/web-apps/nextcloud.nix+1−1
@@ -333,7 +333,7 @@ in {
333333 ${optionalString (c.dbpass != null) "'dbpassword' => '${c.dbpass}',"}
334334 ${optionalString (c.dbpassFile != null) "'dbpassword' => nix_read_pwd(),"}
335335 'dbtype' => '${c.dbtype}',
336− 'trusted_domains' => ${writePhpArrary c.extraTrustedDomains},
336+ 'trusted_domains' => ${writePhpArrary ([ cfg.hostName ] ++ c.extraTrustedDomains)},
337337 ];
338338 '';
339339 occInstallCmd = let