This commit is contained in:
Lebedev Vadim 2014-01-21 15:22:19 +04:00
commit 2252d96fe8
2 changed files with 2 additions and 1 deletions

View file

@ -54,6 +54,7 @@ class nginx (
$http_cfg_append = $nginx::params::nx_http_cfg_append,
$nginx_error_log = $nginx::params::nx_nginx_error_log,
$http_access_log = $nginx::params::nx_http_access_log,
$gzip = $nginx::params::nx_gzip,
$nginx_vhosts = {},
$nginx_upstreams = {},
$nginx_locations = {},

View file

@ -30,7 +30,7 @@ http {
keepalive_timeout <%= scope.lookupvar('nginx::params::nx_keepalive_timeout')%>;
tcp_nodelay <%= scope.lookupvar('nginx::params::nx_tcp_nodelay')%>;
<% if scope.lookupvar('nginx::params::nx_gzip') == 'on' %>
<% if @gzip == 'on' %>
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
<% end -%>