40 lines
2.1 KiB
Django/Jinja
40 lines
2.1 KiB
Django/Jinja
[{{ item.0.name }}]
|
|
|
|
user = {{ item.0.user | default('www-data') }}
|
|
group = {{ item.0.group | default('www-data') }}
|
|
|
|
listen = /run/php/php{{ item.1.version }}-fpm-{{ item.0.name }}.sock
|
|
listen.owner = {{ item.0.user | default('www-data') }}
|
|
listen.group = www-data
|
|
listen.mode = 0660
|
|
listen.backlog = -1
|
|
|
|
pm = {{ item.0.pm | default('dynamic') }}
|
|
pm.start_servers = {{ item.0.pm_start_servers | default(5) }}
|
|
pm.min_spare_servers = {{ item.0.pm_min_spare_servers | default(3) }}
|
|
pm.max_spare_servers = {{ item.0.pm_max_spare_servers | default(8) }}
|
|
pm.max_children = {{ item.0.pm_max_children | default(100) }}
|
|
|
|
pm.max_requests = {{ item.0.pm_max_requests | default(200) }}
|
|
|
|
pm.status_path = /status
|
|
ping.path = /ping
|
|
ping.response = pong
|
|
|
|
request_slowlog_timeout = {{ item.0.request_slowlog_timeout | default('30s') }}
|
|
slowlog = /var/log/php/{{ item.0.name }}/{{ item.1.version }}/php-slow.log
|
|
|
|
request_terminate_timeout = {{ item.0.request_terminate_timeout | default('60s') }}
|
|
rlimit_files = {{ item.0.rlimit_files | default(65536) }}
|
|
catch_workers_output = {{ item.0.catch_workers_output | default('yes') }}
|
|
|
|
security.limit_extensions = .php
|
|
|
|
;; PHP FLAGS and VALUES
|
|
php_admin_flag[display_errors] = {{ item.0.admin_flag_display_errors | default('Off') }}
|
|
php_admin_flag[log_errors] = {{ item.0.admin_flag_log_errors | default('On') }}
|
|
php_admin_value[error_log] = /var/log/php/{{ item.0.name }}/{{ item.1.version }}/php-errors.log
|
|
php_admin_value[error_reporting] = {{ item.0.admin_value_error_reporting | default('E_ALL & ~E_NOTICE') }}
|
|
php_admin_value[memory_limit] = {{ item.0.admin_value_memory_limit | default('64M') }}
|
|
php_admin_value[upload_max_filesize] = {{ item.0.admin_value_upload_max_filesize | default('16M') }}
|
|
php_admin_value[post_max_size] = {{ item.0.admin_value_post_max_size | default('16M') }} |