Actually enable the gzip compression when told.

This commit is contained in:
Andrea Dell'Amico 2020-10-28 19:04:44 +01:00
parent 7e53ab855b
commit b256e76017
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,8 @@
{% if nginx_enable_compression %}
gzip on;
{% else %}
gzip off;
{% endif %}
gzip_vary {{ nginx_gzip_vary }};
gzip_proxied {{ nginx_gzip_proxied }};
gzip_comp_level {{ nginx_gzip_comp_level }};