Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/nginx/templates/nginx.conf.erb

Issue 6239349607759872: Issue 300 - Don`t expose nginx version number in headers (Closed)
Patch Set: Created April 14, 2014, 6:37 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
11 worker_rlimit_nofile <%= scope.lookupvar('nginx::params::worker_rlimit_nofile') %>; 11 worker_rlimit_nofile <%= scope.lookupvar('nginx::params::worker_rlimit_nofile') %>;
12 12
13 http { 13 http {
14 include /etc/nginx/mime.types; 14 include /etc/nginx/mime.types;
15 default_type application/octet-stream; 15 default_type application/octet-stream;
16 16
17 log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 17 log_format main '$remote_addr - $remote_user [$time_local] "$request" '
18 '$status $bytes_sent "$http_referer" ' 18 '$status $bytes_sent "$http_referer" '
19 '"$http_user_agent" "$http_x_forwarded_for" $scheme ' 19 '"$http_user_agent" "$http_x_forwarded_for" $scheme '
20 '"$http_accept_language" "$http_host" "$http_x_client_id"'; 20 '"$http_accept_language" "$http_host" "$http_x_client_id"';
21 21
22 access_log /var/log/nginx/access.log main; 22 access_log /var/log/nginx/access.log main;
23 server_tokens off;
23 24
24 sendfile <%= scope.lookupvar('nginx::params::sendfile')%>; 25 sendfile <%= scope.lookupvar('nginx::params::sendfile')%>;
25 26
26 <% if scope.lookupvar('nginx::params::tcp_nopush') == 'on' %> 27 <% if scope.lookupvar('nginx::params::tcp_nopush') == 'on' %>
27 tcp_nopush on; 28 tcp_nopush on;
28 <% end %> 29 <% end %>
29 30
30 keepalive_timeout <%= scope.lookupvar('nginx::params::keepalive_timeout') %>; 31 keepalive_timeout <%= scope.lookupvar('nginx::params::keepalive_timeout') %>;
31 tcp_nodelay <%= scope.lookupvar('nginx::params::tcp_nodelay') %>; 32 tcp_nodelay <%= scope.lookupvar('nginx::params::tcp_nodelay') %>;
32 33
(...skipping 14 matching lines...) Expand all
47 ssl_session_cache off; 48 ssl_session_cache off;
48 <% end %> 49 <% end %>
49 50
50 types_hash_max_size 2048; 51 types_hash_max_size 2048;
51 52
52 server_names_hash_bucket_size 64; 53 server_names_hash_bucket_size 64;
53 54
54 include /etc/nginx/conf.d/*.conf; 55 include /etc/nginx/conf.d/*.conf;
55 include /etc/nginx/sites-enabled/*; 56 include /etc/nginx/sites-enabled/*;
56 } 57 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld