public
Description: Config files to easily manage multiple Merb/Rails apps behind Nginx
Homepage:
Clone URL: git://github.com/glasner/conf-nginx.git
conf-nginx / base.conf
100644 39 lines (26 sloc) 0.723 kb
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
38
39
# user and group to run as
user nginx deploy;
 
# number of nginx workers
worker_processes 3;
 
# pid of nginx master process
pid master.pid;
 
# Number of worker connections. 1024 is a good default
events {
  worker_connections 1024;
}
 
# start the http module where we config http access.
http {
 
  include mime.types;
  
  include logs.conf;
 
  # no sendfile on OSX
  sendfile on;
  
  # fixes timeouts while processing large files
  proxy_read_timeout 600;
  
  # These are good default values.
  tcp_nopush on;
  tcp_nodelay off;
 
  
  include gzip.conf;
 
 
  # Finds all Merb/Rails apps
  # Each app has to have nginx.conf file in config directory
  include /www/apps/*/current/config/nginx.conf;
}