From b256e7601787554e5dc86c7880c661f5628a16c6 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 28 Oct 2020 19:04:44 +0100 Subject: [PATCH] Actually enable the gzip compression when told. --- templates/nginx-compression.conf.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/nginx-compression.conf.j2 b/templates/nginx-compression.conf.j2 index 4a06955..2354dd0 100644 --- a/templates/nginx-compression.conf.j2 +++ b/templates/nginx-compression.conf.j2 @@ -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 }};