Add env vars on PHP-FPM pool template (#17)

Co-authored-by: Théo Adolphe <theo.adolphe@skilleos.com>
This commit is contained in:
Totooow
2022-10-06 16:36:02 +02:00
committed by GitHub
parent e9e74e2db6
commit 0a51826e2f
3 changed files with 7 additions and 1 deletions

View File

@@ -421,6 +421,9 @@ catch_workers_output = {{ item.catch_workers_output | default('no') }}
;php_admin_value[error_log] = /var/log/fpm-php.www.log
;php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 32M
{% for k, v in item.php_env.items() | list %}
env[{{ k }}] = {{ v }}
{% endfor %}
{% for k, v in item.php_value.items() | list %}
php_value[{{ k }}] = {{ v }}
{% endfor %}