From daa0a3af35379f8b6ac0e08725eb2c680e9b1227 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 29 Nov 2016 09:42:06 +0100 Subject: [PATCH] library/roles/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2: client_max_body_size is now configurable. --- .../templates/generic-smartgears-virtualhost.j2 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 b/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 index 8fd5a5cc..69107ef9 100644 --- a/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 +++ b/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2 @@ -1,5 +1,6 @@ server { listen {{ http_port }}; + client_max_body_size {{ nginx_client_max_body_size | default('100M') }}; {% if egi_image is defined and egi_image %} # No servername into the EGI images {% else %} @@ -13,8 +14,6 @@ server { error_log /var/log/nginx/{{ item.servername }}_error.log; root /usr/share/nginx/html/; - client_max_body_size 100M; - {% if haproxy_ips is defined %} # We are behind haproxy {% for ip in haproxy_ips %} @@ -96,6 +95,7 @@ server { {% if letsencrypt_acme_install %} server { listen {{ https_port }} ssl; + client_max_body_size {{ nginx_client_max_body_size | default('100M') }}; {% if egi_image is defined and egi_image %} # No servername into the EGI images {% else %} @@ -108,8 +108,6 @@ server { # This is the default for nginx on Ubuntu 14.04 root /usr/share/nginx/html/; - client_max_body_size 100M; - {% if haproxy_ips is defined %} # We are behind haproxy {% for ip in haproxy_ips %}