2011-06-07 00:25:04 +02:00
|
|
|
user <%= scope.lookupvar('nginx::config::nx_daemon_user') %>;
|
2012-09-28 18:59:32 +02:00
|
|
|
worker_processes <%= worker_processes %>;
|
2011-06-07 00:25:04 +02:00
|
|
|
|
|
|
|
error_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/error.log;
|
|
|
|
pid <%= scope.lookupvar('nginx::params::nx_pid')%>;
|
|
|
|
|
|
|
|
events {
|
2012-09-28 18:59:32 +02:00
|
|
|
worker_connections <%= worker_connections %>;
|
2012-10-01 21:00:18 +02:00
|
|
|
<% if scope.lookupvar('nginx::params::nx_multi_accept') == 'on' %>multi_accept on;<% end %>
|
2011-06-07 00:25:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
access_log <%= scope.lookupvar('nginx::params::nx_logdir')%>/access.log;
|
|
|
|
|
|
|
|
sendfile <%= scope.lookupvar('nginx::params::nx_sendfile')%>;
|
|
|
|
|
2012-10-01 21:00:18 +02:00
|
|
|
<% if scope.lookupvar('nginx::params::nx_tcp_nopush') == 'on' %>
|
2011-06-07 00:25:04 +02:00
|
|
|
tcp_nopush on;
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
keepalive_timeout <%= scope.lookupvar('nginx::params::nx_keepalive_timeout')%>;
|
|
|
|
tcp_nodelay <%= scope.lookupvar('nginx::params::nx_tcp_nodelay')%>;
|
|
|
|
|
2013-03-16 10:34:07 +01:00
|
|
|
types_hash_max_size <%= scope.lookupvar('nginx::params::nx_types_hash_max_size')%>;
|
|
|
|
|
2012-10-01 21:00:18 +02:00
|
|
|
<% if scope.lookupvar('nginx::params::nx_gzip') == 'on' %>
|
2011-06-07 00:25:04 +02:00
|
|
|
gzip on;
|
|
|
|
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
2012-10-01 21:00:18 +02:00
|
|
|
}
|