diff --git a/nixos/modules/nextcloud/default.nix b/nixos/modules/nextcloud/default.nix index b4b1f76..6e621e0 100644 --- a/nixos/modules/nextcloud/default.nix +++ b/nixos/modules/nextcloud/default.nix @@ -18,7 +18,7 @@ configureRedis = true; # Increase the maximum file upload size to avoid problems uploading videos. - maxUploadSize = "16G"; + maxUploadSize = "5G"; https = true; autoUpdateApps.enable = true; @@ -38,6 +38,8 @@ settings = { overwriteProtocol = "https"; + overwritehost = "cloud.ryot.foo"; + trusted_domains = [ "cloud.ryot.foo" ]; default_phone_region = "US"; }; diff --git a/nixos/modules/nginx/default.nix b/nixos/modules/nginx/default.nix index 92a356d..bc4966f 100644 --- a/nixos/modules/nginx/default.nix +++ b/nixos/modules/nginx/default.nix @@ -16,11 +16,11 @@ # Setup Nextcloud virtual host to listen on ports virtualHosts = { - "cloud.ryot.foo" = { - ## Force HTTP redirect to HTTPS - forceSSL = true; - ## LetsEncrypt - enableACME = true; + "cloud.ryot.foo" = { + ## Force HTTP redirect to HTTPS + forceSSL = true; + ## LetsEncrypt + enableACME = true; }; }; };