You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
946 B
Plaintext

[{{ pool_name }}]
user = {{ system_user }}
group = {{ nginx_system_user }}
listen = {{ socket }}
listen.owner = {{ system_user }}
listen.group = {{ nginx_system_user }}
listen.mode = 0660
pm = dynamic
pm.max_children = 128
pm.start_servers = 16
pm.min_spare_servers = 8
pm.max_spare_servers = 32
pm.max_requests = 512
pm.process_idle_timeout = 10s
{% if status_page_path is defined and status_page_path|length -%}
pm.status_path = {{ status_page_path }}
{%- endif %}
clear_env = no
chdir = {{ src }}
security.limit_extensions = .php .php3 .php4 .php5 .php7
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
{% for key,val in env_vars.items() %}
env[{{ key }}] = {{ val | quote }}
{% endfor %}
php_admin_value[include_path] = ".:{{ includes | join(':') }}:/usr/share/php"
{% if memory_limit is defined %}
php_admin_value[memory_limit] = {{ memory_limit }}
{% endif %}