Add tweaks recommended by nextcloud
This commit is contained in:
parent
2eaeb97a0f
commit
292536ff36
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue