move gzip to separate block as it's pretty common to override

pull/92/head
Oskar Schöldström 7 years ago
parent 36cd4d3aec
commit c9a6015281
  1. 6
      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 %}