ansible-role-nextcloud/templates/php_fpm_pool.j2

53 lines
2.2 KiB
Text
Raw Normal View History

[{{ instance.user }}]
2020-12-03 15:52:14 +01:00
;prefix = /path/to/pools/$pool
user = $pool
2021-07-02 02:18:18 +02:00
group = $pool
2020-12-03 15:52:14 +01:00
listen = /run/php/php-fpm-$pool.sock
;listen.backlog = 65535
listen.owner = $pool
listen.group = www-data
listen.mode = 0660
;listen.acl_users =
;listen.acl_groups =
listen.allowed_clients = 127.0.0.1
2020-12-08 11:30:29 +01:00
pm = dynamic
pm.max_children = 60
pm.start_servers = 6
pm.min_spare_servers = 3
pm.max_spare_servers = 9
2020-12-03 15:52:14 +01:00
pm.process_idle_timeout = 10s;
pm.max_requests = 100
;pm.status_path = /status
;ping.path = /ping
;ping.response = pong
;access.log = log/$pool.access.log
;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
;slowlog = log/$pool.log.slow
;request_slowlog_timeout = 0
;request_terminate_timeout = 0
;rlimit_files = 1024
;rlimit_core = 0
;chroot =
chdir = /
;catch_workers_output = yes
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
2020-12-03 23:54:55 +01:00
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
2020-12-03 15:52:14 +01:00
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
;php_flag[display_errors] = off
;php_admin_value[error_log] = /var/log/fpm-php.www.log
;php_admin_flag[log_errors] = on
2020-12-03 23:14:27 +01:00
php_admin_value[memory_limit] = {{ nextcloud_php_memory_limit }}
2020-12-03 23:54:55 +01:00
php_admin_value[upload_max_filesize] = {{ nextcloud_php_upload_limit }}
php_admin_value[post_max_size] = {{ nextcloud_php_upload_limit }}
2020-12-08 11:30:29 +01:00
php_admin_value[opcache.interned_strings_buffer] = 8
php_admin_value[opcache.max_accelerated_files] = 10000
php_admin_value[opcache.memory_consumption] = 128
php_admin_value[opcache.save_comments] = 1
php_admin_value[opcache.revalidate_freq] = 1
php_admin_value[open_basedir] = {{ nextcloud_install_path }}:/tmp:/dev/urandom:/proc/meminfo:/var/log:/sys/class/net/eth0:/sys/class/net/lo
;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,shell_exec,phpinfo