From 035960e327809ae2db57d66e225de4fc9506ce4f Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Mon, 11 May 2026 23:51:07 -0400 Subject: [PATCH] fix timouts assembling large uploaded files --- modules/hosts/nixos/nixnuc/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/hosts/nixos/nixnuc/default.nix b/modules/hosts/nixos/nixnuc/default.nix index d43fd0d..70ca597 100644 --- a/modules/hosts/nixos/nixnuc/default.nix +++ b/modules/hosts/nixos/nixnuc/default.nix @@ -278,10 +278,16 @@ in # inherit calendar contacts cookbook maps notes tasks; #}; #extraAppsEnable = true; + fastcgiTimeout = 3600; home = "/orico/nextcloud"; https = true; maxUploadSize = "100G"; # Increase the PHP maximum file upload size - phpOptions."opcache.interned_strings_buffer" = "16"; # Suggested by Nextcloud's health check. + phpOptions = { + "max_execution_time" = "3600"; + "max_input_time" = "3600"; + "opcache.interned_strings_buffer" = "16"; # Suggested by Nextcloud's health check. + "upload_tmp_dir" = "/orico/nextcloud/php-upload-tmp"; + }; settings = { default_phone_region = "US"; # https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#enabledpreviewproviders