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 -%>