forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2: client_max_body_size is now configurable.
This commit is contained in:
parent
0576a0edc5
commit
daa0a3af35
|
@ -1,5 +1,6 @@
|
||||||
server {
|
server {
|
||||||
listen {{ http_port }};
|
listen {{ http_port }};
|
||||||
|
client_max_body_size {{ nginx_client_max_body_size | default('100M') }};
|
||||||
{% if egi_image is defined and egi_image %}
|
{% if egi_image is defined and egi_image %}
|
||||||
# No servername into the EGI images
|
# No servername into the EGI images
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -13,8 +14,6 @@ server {
|
||||||
error_log /var/log/nginx/{{ item.servername }}_error.log;
|
error_log /var/log/nginx/{{ item.servername }}_error.log;
|
||||||
root /usr/share/nginx/html/;
|
root /usr/share/nginx/html/;
|
||||||
|
|
||||||
client_max_body_size 100M;
|
|
||||||
|
|
||||||
{% if haproxy_ips is defined %}
|
{% if haproxy_ips is defined %}
|
||||||
# We are behind haproxy
|
# We are behind haproxy
|
||||||
{% for ip in haproxy_ips %}
|
{% for ip in haproxy_ips %}
|
||||||
|
@ -96,6 +95,7 @@ server {
|
||||||
{% if letsencrypt_acme_install %}
|
{% if letsencrypt_acme_install %}
|
||||||
server {
|
server {
|
||||||
listen {{ https_port }} ssl;
|
listen {{ https_port }} ssl;
|
||||||
|
client_max_body_size {{ nginx_client_max_body_size | default('100M') }};
|
||||||
{% if egi_image is defined and egi_image %}
|
{% if egi_image is defined and egi_image %}
|
||||||
# No servername into the EGI images
|
# No servername into the EGI images
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -108,8 +108,6 @@ server {
|
||||||
# This is the default for nginx on Ubuntu 14.04
|
# This is the default for nginx on Ubuntu 14.04
|
||||||
root /usr/share/nginx/html/;
|
root /usr/share/nginx/html/;
|
||||||
|
|
||||||
client_max_body_size 100M;
|
|
||||||
|
|
||||||
{% if haproxy_ips is defined %}
|
{% if haproxy_ips is defined %}
|
||||||
# We are behind haproxy
|
# We are behind haproxy
|
||||||
{% for ip in haproxy_ips %}
|
{% for ip in haproxy_ips %}
|
||||||
|
|
Loading…
Reference in New Issue