nginx virtualhost: set client_max_body_size.

This commit is contained in:
Andrea Dell'Amico 2020-02-17 13:09:43 +01:00
parent 9c756aa272
commit 347a8a7dfc
1 changed files with 7 additions and 0 deletions

View File

@ -88,6 +88,13 @@ server {
real_ip_header X-Forwarded-For;
{% endif %}
{% if item.max_body is defined %}
client_max_body_size {{ item.max_body }};
{% else %}
client_max_body_size {{ nginx_client_max_body_size }};
{% endif %}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;