Add tweaks recommended by nextcloud

This commit is contained in:
niten 2024-02-08 09:12:22 -08:00
parent 2eaeb97a0f
commit 292536ff36
1 changed files with 26 additions and 0 deletions

View File

@ -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";
};
};
};
};