library/roles/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2: client_max_body_size is now configurable.

This commit is contained in:
Andrea Dell'Amico 2016-11-29 09:42:06 +01:00
parent 0576a0edc5
commit daa0a3af35
1 changed files with 2 additions and 4 deletions

View File

@ -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 %}