OLD | NEW |
1 user <%= scope.lookupvar('nginx::params::user') %> <%= scope.lookupvar('nginx::p
arams::group') %>; | 1 user <%= scope.lookupvar('nginx::params::user') %> <%= scope.lookupvar('nginx::p
arams::group') %>; |
2 worker_processes <%= worker_processes %>; | 2 worker_processes <%= worker_processes %>; |
3 | 3 |
4 error_log /var/log/nginx/error.log notice; | 4 error_log /var/log/nginx/error.log notice; |
5 pid /var/run/nginx.pid; | 5 pid /var/run/nginx.pid; |
6 | 6 |
7 events { | 7 events { |
8 worker_connections <%= worker_connections %>; | 8 worker_connections <%= worker_connections %>; |
9 <% if scope.lookupvar('nginx::params::multi_accept') == 'on' %>multi_accept on
;<% end %> | 9 <% if scope.lookupvar('nginx::params::multi_accept') == 'on' %>multi_accept on
;<% end %> |
10 } | 10 } |
(...skipping 21 matching lines...) Expand all Loading... |
32 <% if scope.lookupvar('nginx::params::gzip') == 'on' %> | 32 <% if scope.lookupvar('nginx::params::gzip') == 'on' %> |
33 gzip on; | 33 gzip on; |
34 gzip_disable "msie6"; | 34 gzip_disable "msie6"; |
35 gzip_min_length 100; | 35 gzip_min_length 100; |
36 gzip_buffers 4 8k; | 36 gzip_buffers 4 8k; |
37 gzip_types text/plain text/xhtml text/css application/x-javascript text/xml ap
plication/atom+xml application/rss+xml; | 37 gzip_types text/plain text/xhtml text/css application/x-javascript text/xml ap
plication/atom+xml application/rss+xml; |
38 <% end %> | 38 <% end %> |
39 | 39 |
40 ssl_ciphers RC4:ALL:-LOW:-EXPORT:!aNULL:!aECDH:!MD5; | 40 ssl_ciphers RC4:ALL:-LOW:-EXPORT:!aNULL:!aECDH:!MD5; |
41 ssl_prefer_server_ciphers on; | 41 ssl_prefer_server_ciphers on; |
| 42 <% if ssl_session_cache == 'on' %> |
42 ssl_session_cache shared:SSL:1m; | 43 ssl_session_cache shared:SSL:1m; |
| 44 <% end %> |
43 | 45 |
44 include /etc/nginx/conf.d/*.conf; | 46 include /etc/nginx/conf.d/*.conf; |
45 include /etc/nginx/sites-enabled/*; | 47 include /etc/nginx/sites-enabled/*; |
46 } | 48 } |
OLD | NEW |