From 292536ff36d67ca14acf7238db3aab1226d2bc22 Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 8 Feb 2024 09:12:22 -0800 Subject: [PATCH] Add tweaks recommended by nextcloud --- nextcloud-container.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/nextcloud-container.nix b/nextcloud-container.nix index 0dce4c4..ae8fa5f 100644 --- a/nextcloud-container.nix +++ b/nextcloud-container.nix @@ -126,6 +126,32 @@ in { # TODO: is there a way to narrow this? trustedProxies = [ "10.0.0.0/8" ]; }; + poolSettings = { + "pm" = "dynamic"; + "pm.max_children" = "32"; + "pm.max_requests" = "500"; + "pm.max_spare_servers" = "8"; + "pm.min_spare_servers" = "2"; + "pm.start_servers" = "6"; + }; + phpOptions = { + "catch_workers_output" = "yes"; + "display_errors" = "stderr"; + "error_reporting" = "E_ALL & ~E_DEPRECATED & ~E_STRICT"; + "expose_php" = "Off"; + "opcache.enable_cli" = "1"; + "opcache.fast_shutdown" = "1"; + "opcache.interned_strings_buffer" = "8"; + "opcache.max_accelerated_files" = "10000"; + "opcache.memory_consumption" = "128"; + "opcache.revalidate_freq" = "1"; + "openssl.cafile" = "/etc/ssl/certs/ca-certificates.crt"; + "output_buffering" = "0"; + "short_open_tag" = "Off"; + + "max_input_time" = "3600"; + "max_execution_time" = "3600"; + }; }; }; };