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.
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
[{{ pool_name }}]
|
|
|
|
user = {{ system_user }}
|
|
group = {{ global_nginx_system_user }}
|
|
|
|
listen = {{ socket }}
|
|
listen.owner = {{ system_user }}
|
|
listen.group = {{ global_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 %}
|
|
|
|
{% if not allow_overwrite_includes %}
|
|
php_admin_value[include_path] = ".:{{ includes | join(':') }}:/usr/share/php"
|
|
{% endif %}
|
|
{% if memory_limit is defined and memory_limit %}
|
|
php_admin_value[memory_limit] = {{ memory_limit }}
|
|
{% endif %}
|