Manage the chunked_transfer_encoding option in the virtualhost template.

This commit is contained in:
Andrea Dell'Amico 2024-10-18 17:51:13 +02:00
parent 37b9a73821
commit a0ce375254
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,7 @@ nginx_default_max_buffers_size: 16
nginx_client_header_buffer_size: '{{ nginx_default_max_buffers_size }}k'
nginx_client_body_buffer_size: '{{ nginx_default_max_buffers_size }}k'
nginx_large_client_header_buffers: '4 {{ nginx_default_max_buffers_size }}k'
nginx_set_chunked_transfer_encoding: false
nginx_enable_compression: true
nginx_gzip_vary: "on"

View File

@ -80,6 +80,9 @@ server {
add_header Content-Security-Policy "frame-src{% for s in nginx_content_security_src_acl %} {{ s }}{% endfor %}; frame-ancestors{% for l in nginx_content_security_ancestor_acl %} {{ l }}{% endfor %};";
{% endif %}
{% endif %}
{% if nginx_set_chunked_transfer_encoding %}
chunked_transfer_encoding on;
{% endif %}
server_tokens {{ item.server_tokens | default('off') }};
{% if item.ssl_enabled and item.ssl_only %}
@ -303,6 +306,9 @@ server {
add_header Content-Security-Policy "frame-src{% for s in nginx_content_security_src_acl %} {{ s }}{% endfor %}; frame-ancestors{% for l in nginx_content_security_ancestor_acl %} {{ l }}{% endfor %};";
{% endif %}
{% endif %}
{% if nginx_set_chunked_transfer_encoding %}
chunked_transfer_encoding on;
{% endif %}
server_tokens {{ item.server_tokens | default('off') }};
{% if nginx_cors_enabled %}