diff --git a/roles/revproxy/templates/vhosts.conf b/roles/revproxy/templates/vhosts.conf index 32c3257803a9860ccb5d6459e9c4a23e1f3e2901..e76b568ae8b65f559ed735ef2d163ffb1a3b2501 100644 --- a/roles/revproxy/templates/vhosts.conf +++ b/roles/revproxy/templates/vhosts.conf @@ -17,7 +17,9 @@ server { add_header Strict-Transport-Security "max-age=31536000"; #add_header X-Frame-Options "SAMEORIGIN"; - client_max_body_size 3G; +{% if vhost.max_body_size is defined %} + client_max_body_size {{ vhost.max_body_size }}; +{% endif %} # lets encrypt challenges location /.well-known/acme-challenge/ {