Manage the chunked_transfer_encoding option in the virtualhost template.
This commit is contained in:
parent
37b9a73821
commit
a0ce375254
|
@ -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"
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue