2022-07-26 16:44:42 +02:00
|
|
|
[global]
|
|
|
|
error_log = ${FPM_ERROR_LOG}
|
|
|
|
|
2023-05-21 23:01:31 +02:00
|
|
|
[{{ item.user }}]
|
2022-07-26 16:44:42 +02:00
|
|
|
listen = ${FPM_SOCKET_PATH}
|
2020-12-08 11:30:29 +01:00
|
|
|
pm = dynamic
|
2023-08-20 23:01:59 +02:00
|
|
|
pm.max_children = {{ item.php.pm_max_children | default(nextcloud_pm_max_children ) }}
|
|
|
|
pm.start_servers = {{ item.php.pm_start_servers | default(nextcloud_pm_start_servers) }}
|
|
|
|
pm.min_spare_servers = {{ item.php.pm_min_spare_servers | default(nextcloud_pm_min_spare_servers) }}
|
|
|
|
pm.max_spare_servers = {{ item.php.pm_max_spare_servers | default(nextcloud_pm_max_spare_servers) }}
|
2022-07-26 16:44:42 +02:00
|
|
|
pm.process_idle_timeout = 10s
|
|
|
|
pm.max_requests = 200
|
2022-01-17 23:17:20 +01:00
|
|
|
pm.status_path = /status
|
2020-12-03 15:52:14 +01:00
|
|
|
chdir = /
|
2020-12-03 23:54:55 +01:00
|
|
|
clear_env = no
|
2020-12-03 15:52:14 +01:00
|
|
|
security.limit_extensions = .php .php3 .php4 .php5
|
2022-07-26 16:44:42 +02:00
|
|
|
php_admin_value[opcache.validate_permission] = 1
|
|
|
|
php_admin_value[opcache.validate_root] = 1
|
2024-03-23 23:38:50 +01:00
|
|
|
php_admin_value[opcache.interned_strings_buffer] = 256
|
2020-12-08 11:30:29 +01:00
|
|
|
php_admin_value[opcache.max_accelerated_files] = 10000
|
|
|
|
php_admin_value[opcache.memory_consumption] = 128
|
|
|
|
php_admin_value[opcache.save_comments] = 1
|
2023-06-28 19:15:02 +02:00
|
|
|
php_admin_value[opcache.revalidate_freq] = 60
|
|
|
|
php_admin_value[opcache.jit] = 1255
|
|
|
|
php_admin_value[opcache.jit_buffer_size] = 128M
|
2022-07-26 16:44:42 +02:00
|
|
|
php_admin_value[openssl.capath] = /etc/ssl/certs
|
|
|
|
php_flag[display_errors] = off
|
|
|
|
php_admin_flag[log_errors] = on
|
|
|
|
php_admin_value[memory_limit] = {{ nextcloud_php_memory_limit }}
|
|
|
|
php_admin_value[upload_max_filesize] = {{ nextcloud_php_upload_limit }}
|
|
|
|
php_admin_value[post_max_size] = {{ nextcloud_php_upload_limit }}
|
2023-06-28 19:04:40 +02:00
|
|
|
php_admin_value[open_basedir] = {{ nextcloud_install_path }}:/tmp:/dev/urandom:/proc/cpuinfo:/proc/meminfo:/var/log:/sys/class/net/eth0:/sys/class/net/lo
|
2023-10-21 17:46:38 +02:00
|
|
|
;php_admin_value[disable_functions] = mail,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_exec,passthru,system,proc_get_status,proc_close,proc_nice,proc_terminate,proc_open,curl_ini,parse_ini_file,show_source,dl,symlink,system_exec,exec,phpinfo
|