aboutsummaryrefslogtreecommitdiff
path: root/roles/apache/templates/fpm-pool.conf.j2
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-02 01:02:31 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-09-02 01:02:31 +0200
commit2e3a53d879ef17f2e4afcce9e6b7f121ab25c571 (patch)
tree6f75bcb2af9dcc5c975ffa0d3438023ad8abf8ca /roles/apache/templates/fpm-pool.conf.j2
parenta024ad57e94976f7541bdd352e2d0a364c2aa5fb (diff)
downloadansible_collection-2e3a53d879ef17f2e4afcce9e6b7f121ab25c571.tar.gz
add apache role
Diffstat (limited to 'roles/apache/templates/fpm-pool.conf.j2')
-rw-r--r--roles/apache/templates/fpm-pool.conf.j215
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/apache/templates/fpm-pool.conf.j2 b/roles/apache/templates/fpm-pool.conf.j2
new file mode 100644
index 0000000..514382b
--- /dev/null
+++ b/roles/apache/templates/fpm-pool.conf.j2
@@ -0,0 +1,15 @@
+[www-{{ item.key }}]
+ user = www-{{ item.key }}
+ group = www-{{ item.key }}
+ listen = /run/php/php{{ item.value.php_version }}-fpm.www-{{ item.key }}.sock
+ listen.owner = www-{{ item.key }}
+ listen.group = www-{{ item.key }}
+ listen.mode = 0600
+
+ pm = dynamic
+ pm.max_children = {{ item.value.fpm.max_children | default("5") }}
+ pm.start_servers = {{ item.value.fpm.start_servers | default("2") }}
+ pm.min_spare_servers = {{ item.value.fpm.min_spare_servers | default("1") }}
+ pm.max_spare_servers = {{ item.value.fpm.max_spare_servers | default("3") }}
+
+{{ item.value.php_custom_conf | default("") }}