From faf6e72c8f16089fbe9ad5baa6323a0bc5d318cb Mon Sep 17 00:00:00 2001 From: William Date: Sun, 24 Mar 2024 11:47:54 -0300 Subject: [PATCH] Nextcloud upload size --- hosts/servers/alexandria/nextcloud.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hosts/servers/alexandria/nextcloud.nix b/hosts/servers/alexandria/nextcloud.nix index 5090d7e..bde2785 100644 --- a/hosts/servers/alexandria/nextcloud.nix +++ b/hosts/servers/alexandria/nextcloud.nix @@ -23,17 +23,14 @@ trustedProxies = [ "127.0.0.1" ]; adminpassFile = config.age.secrets.nextcloud-adminpass.path; }; - phpOptions = { - upload_max_filesize = lib.mkDefault "8G"; - post_max_size = lib.mkDefault "8G"; - "opcache.interned_strings_buffer" = "16"; - }; + phpOptions = { "opcache.interned_strings_buffer" = "16"; }; }; nginx.virtualHosts.${config.services.nextcloud.hostName} = { useACMEHost = "baduhai.dev"; forceSSL = true; kTLS = true; + extraConfig = "client_max_body_size 8G"; }; };