1
0
angie-conv-image/angie/snip.dist/disable-compression.j2
2024-09-17 14:11:00 +03:00

8 lines
312 B
Django/Jinja

{#- safe to specify all the time -#}
gzip off;
{%- set extra_comp_modules = ['brotli', 'zstd'] -%}
{%- set modules = ( env.NGX_HTTP_MODULES or '' ) | str_split_to_list -%}
{%- set comp_modules = modules | list_intersect(extra_comp_modules) | sort -%}
{%- for comp in comp_modules %}
{{ comp }} off;
{%- endfor %}