From 4b263f7ba0db7a3123658d65388b3a358da3b68c Mon Sep 17 00:00:00 2001 From: Chris Toph Date: Thu, 5 Sep 2024 18:40:23 -0400 Subject: [PATCH] Lowered nextcloud upload size and set its trusted domain --- nixos/modules/nextcloud/default.nix | 4 +++- nixos/modules/nginx/default.nix | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) 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; }; }; };