From fc905b0d7a3e6d6af8d5ec3beba3e8fbf947a327 Mon Sep 17 00:00:00 2001 From: Matthew Haughton <3flex@users.noreply.github.com> Date: Mon, 8 Feb 2016 16:25:25 -0500 Subject: [PATCH] nginx.conf: remove gzip_types when undef --- templates/conf.d/nginx.conf.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/conf.d/nginx.conf.erb b/templates/conf.d/nginx.conf.erb index ccf8fc1..f239d9f 100644 --- a/templates/conf.d/nginx.conf.erb +++ b/templates/conf.d/nginx.conf.erb @@ -74,7 +74,9 @@ http { <% if @gzip_proxied -%> gzip_proxied <%= @gzip_proxied %>; <% end -%> +<% if @gzip_types -%> gzip_types <%= @gzip_types.kind_of?(Array) ? @gzip_types.join(' ') : @gzip_types %>; +<% end -%> gzip_vary <%= @gzip_vary %>; <% end -%>