1
0
angie-conv-image/angie/snip.dist/disable-compression.j2

8 lines
238 B
Plaintext
Raw Normal View History

2024-07-24 22:47:53 +03:00
{#- safe to specify all the time -#}
gzip off;
{%- set modules = ( env.NGX_HTTP_MODULES or '' ) | str_split_to_list -%}
{%- for ext_comp in ['brotli', 'zstd'] %}
{%- if ext_comp in modules %}
{{ ext_comp }} off;
{%- endif %}
{%- endfor %}