From c9a60152814140d17c32a0cc2940a4b5c4b7c09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Sat, 25 Mar 2017 16:45:01 -0500 Subject: [PATCH] move gzip to separate block as it's pretty common to override --- templates/nginx.conf.j2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 4ec1de1..cb187d8 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -41,13 +41,15 @@ http { keepalive_requests {{ nginx_keepalive_requests }}; server_tokens {{ nginx_server_tokens }}; - #gzip on; - {% if nginx_proxy_cache_path %} proxy_cache_path {{ nginx_proxy_cache_path }}; {% endif %} {% endblock %} +{% block http_gzip %} + # gzip on; +{% endblock %} + {% if nginx_extra_http_options %} {{ nginx_extra_http_options|indent(4, False) }} {% endif %}