diff options
author | mitchmindtree <mail@mitchellnordine.com> | 2021-10-03 13:50:25 +1000 |
---|---|---|
committer | mitchmindtree <mail@mitchellnordine.com> | 2021-10-03 16:38:56 +1000 |
commit | fbffaddefe1db5b7ba0a86b302902311d8c06411 (patch) | |
tree | 50fc50018b989beeb5b6d103d728423b64ae7e8c /nixos/modules/services/web-apps/nextcloud.nix | |
parent | b23d6a4113bb087357d66e5073c1ee6883eb1744 (diff) | |
download | nixpkgs-fbffaddefe1db5b7ba0a86b302902311d8c06411.tar nixpkgs-fbffaddefe1db5b7ba0a86b302902311d8c06411.tar.gz nixpkgs-fbffaddefe1db5b7ba0a86b302902311d8c06411.tar.bz2 nixpkgs-fbffaddefe1db5b7ba0a86b302902311d8c06411.tar.lz nixpkgs-fbffaddefe1db5b7ba0a86b302902311d8c06411.tar.xz nixpkgs-fbffaddefe1db5b7ba0a86b302902311d8c06411.tar.zst nixpkgs-fbffaddefe1db5b7ba0a86b302902311d8c06411.zip |
nixos/nextcloud: Make `objectstore.s3.useSsl` explicitly true by default
This appears to match the nextcloud default behaviour observed here: https://github.com/nextcloud/server/blob/e2116e2fb226890341c548e3f7d79c0ac63c1b06/lib/private/Files/ObjectStore/S3ConnectionTrait.php#L83
Diffstat (limited to 'nixos/modules/services/web-apps/nextcloud.nix')
-rw-r--r-- | nixos/modules/services/web-apps/nextcloud.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index f2b50ec43a4..7794cf4518f 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -368,8 +368,8 @@ in { ''; }; useSsl = mkOption { - type = types.nullOr types.bool; - default = null; + type = types.bool; + default = true; description = '' Use SSL for objectstore access. ''; @@ -573,7 +573,7 @@ in { 'secret' => nix_read_secret('${s3.secretFile}'), ${optionalString (s3.hostname != null) "'hostname' => '${s3.hostname}',"} ${optionalString (s3.port != null) "'port' => ${toString s3.port},"} - ${optionalString (s3.useSsl != null) "'use_ssl' => ${boolToString s3.useSsl},"} + 'use_ssl' => ${boolToString s3.useSsl}, ${optionalString (s3.region != null) "'region' => '${s3.region}',"} 'use_path_style' => ${boolToString s3.usePathStyle}, ], |