pool_user and pool_group option for FPM
This commit is contained in:
parent
51684c4c27
commit
fca902dc53
|
@ -74,6 +74,8 @@ The handler restarts PHP-FPM by default. Setting the value to `reloaded` will re
|
|||
|
||||
php_fpm_pools:
|
||||
- pool_name: www
|
||||
pool_user: www-data
|
||||
pool_group: www-data
|
||||
pool_template: www.conf.j2
|
||||
pool_listen: "127.0.0.1:9000"
|
||||
pool_listen_allowed_clients: "127.0.0.1"
|
||||
|
|
|
@ -36,6 +36,8 @@ php_fpm_pm_status_path: ""
|
|||
# PHP-FPM pool configuration.
|
||||
php_fpm_pools:
|
||||
- pool_name: www
|
||||
pool_user: www-data
|
||||
pool_group: www-data
|
||||
pool_template: www.conf.j2
|
||||
pool_listen: "{{ php_fpm_listen }}"
|
||||
pool_listen_allowed_clients: "{{ php_fpm_listen_allowed_clients }}"
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
[{{ item.pool_name | mandatory }}]
|
||||
listen = {{ item.pool_listen | mandatory }}
|
||||
listen.allowed_clients = {{ item.pool_listen_allowed_clients | default('127.0.0.1', true) }}
|
||||
user = {{ php_fpm_pool_user }}
|
||||
group = {{ php_fpm_pool_group }}
|
||||
user = {{ item.pool_user | default(php_fpm_pool_user) }}
|
||||
group = {{ item.pool_group | default(php_fpm_pool_group) }}
|
||||
|
||||
listen.owner = {{ php_fpm_pool_user }}
|
||||
listen.group = {{ php_fpm_pool_group }}
|
||||
listen.owner = {{ item.pool_user | default(php_fpm_pool_user) }}
|
||||
listen.group = {{ item.pool_group | default(php_fpm_pool_group) }}
|
||||
|
||||
pm = {{ item.pool_pm | default('dynamic', true) }}
|
||||
pm.max_children = {{ item.pool_pm_max_children | default(50, true) }}
|
||||
|
|
Loading…
Reference in New Issue