nginx.conf.erb
696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
user <%= @user %>;
worker_processes <%= @worker_processes %>;
<% if @error_log %>
error_log <%= @error_log %>;
<% end %>
<% if @pid_file %>
pid <%= @pid_file %>;
<% end %>
events {
worker_connections <%= @worker_connections %>;
}
http {
include /etc/nginx/mime.types;
<% if @access_log %>
access_log <%= @access_log %>;
<% end %>
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
server_tokens off;
types_hash_bucket_size 64;
}