From c6c7f364d4e38eb67118088fde09dafe9bf477ad Mon Sep 17 00:00:00 2001 From: Robin Sonnabend <robin@fsmpi.rwth-aachen.de> Date: Tue, 20 Mar 2018 20:29:37 +0100 Subject: [PATCH] Enable passing php-options in php-fpm --- php-fpm/templates/pool.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/php-fpm/templates/pool.conf.j2 b/php-fpm/templates/pool.conf.j2 index 89e2870..7602a46 100644 --- a/php-fpm/templates/pool.conf.j2 +++ b/php-fpm/templates/pool.conf.j2 @@ -11,3 +11,9 @@ pm = ondemand pm.max_children = 10 pm.process_idle_timeout = 10s pm.max_requests = 500 + +{% if fpm_params is defined %} +{% for key, value in fpm_params.items() %} +php_value[{{key}}] = {{value}}; +{% endfor %} +{% endif %} -- GitLab