nginx virtualhost: set client_max_body_size.
This commit is contained in:
parent
9c756aa272
commit
347a8a7dfc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue