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

8 lines
312 B
Plaintext
Raw Normal View History

2024-07-24 22:47:53 +03:00
{#- safe to specify all the time -#}
gzip off;
2024-07-31 14:04:15 +03:00
{%- set extra_comp_modules = ['brotli', 'zstd'] -%}
2024-07-24 22:47:53 +03:00
{%- set modules = ( env.NGX_HTTP_MODULES or '' ) | str_split_to_list -%}
2024-07-31 14:04:15 +03:00
{%- set comp_modules = modules | list_intersect(extra_comp_modules) | sort -%}
{%- for comp in comp_modules %}
{{ comp }} off;
2024-07-24 22:47:53 +03:00
{%- endfor %}