fixing nginx.conf.erb. otherwise it will lookup for a FalseClass or TrueClass variable
This commit is contained in:
parent
3acceec622
commit
5c4c00d726
1 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ pid <%= scope.lookupvar('nginx::params::nx_pid')%>;
|
|||
|
||||
events {
|
||||
worker_connections <%= scope.lookupvar('nginx::params::nx_worker_connections') %>;
|
||||
<% if scope.lookupvar('nginx::params::nx_multi_accept' == 'on') %>multi_accept on;<% end %>
|
||||
<% if scope.lookupvar('nginx::params::nx_multi_accept') == 'on' %>multi_accept on;<% end %>
|
||||
}
|
||||
|
||||
http {
|
||||
|
@ -17,17 +17,17 @@ http {
|
|||
|
||||
sendfile <%= scope.lookupvar('nginx::params::nx_sendfile')%>;
|
||||
|
||||
<% if scope.lookupvar('nginx::params::nx_tcp_nopush' == 'on') %>
|
||||
<% if scope.lookupvar('nginx::params::nx_tcp_nopush') == 'on' %>
|
||||
tcp_nopush on;
|
||||
<% end %>
|
||||
|
||||
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 scope.lookupvar('nginx::params::nx_gzip') == 'on' %>
|
||||
gzip on;
|
||||
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
||||
<% end %>
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue