infra/roles/nginx/templates/conf.d/uploadsize.conf.j2

10 lines
299 B
Django/Jinja

# managed by ansible.
{% if 'rpi' not in group_names %}
# This has no effects in a server-block, but seems to work
# somewhat in /etc/nginx/conf.d
client_max_body_size {{ nginx_max_body_size | default('2G') }};
proxy_max_temp_file_size {{ nginx_max_temp_file_size|default('2048m') }};
{% endif %}