From f901bbb1bdd242ccdc58e23c80c880c66855b588 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sun, 18 Sep 2016 17:01:40 +0200 Subject: [PATCH] library/roles/php-fpm/templates/php-fpm-pool.conf.j2: Add the possibility to increase the upload_max_filesize value for each fpm pool. --- php-fpm/templates/php-fpm-pool.conf.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php-fpm/templates/php-fpm-pool.conf.j2 b/php-fpm/templates/php-fpm-pool.conf.j2 index c21fd84e..8501c125 100644 --- a/php-fpm/templates/php-fpm-pool.conf.j2 +++ b/php-fpm/templates/php-fpm-pool.conf.j2 @@ -286,7 +286,9 @@ php_flag[display_errors] = {{ item.display_errors }} php_admin_value[error_log] = {{ phpfpm_logdir }}/$pool-error.log php_admin_flag[log_errors] = {{ item.log_errors }} php_admin_value[memory_limit] = {{ item.memory_limit }} - +{% if item.upload_max_filesize is defined %} +php_admin_value[upload_max_filesize] = {{ item.upload_max_filesize }} +{% endif %} ; Set session path to a directory owned by process user {% if item.session_save_handler is defined %} php_value[session.save_handler] = '{{ item.session_save_handler }}'