2011-03-23 17:18:57 -04:00
|
|
|
worker_processes 4;
|
|
|
|
user nginx nginx;
|
|
|
|
|
|
|
|
pid /usr/local/nginx/logs/nginx.pid;
|
|
|
|
error_log /usr/local/nginx/logs/error.log;
|
2011-02-09 15:45:41 -05:00
|
|
|
|
|
|
|
events {
|
2011-03-23 17:18:57 -04:00
|
|
|
worker_connections 1024;
|
2011-02-09 15:45:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
access_log /var/log/nginx/access.log;
|
2017-01-12 16:17:59 -08:00
|
|
|
error_log /var/log/nginx/error.log;
|
2011-02-09 15:45:41 -05:00
|
|
|
|
|
|
|
include mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
2011-03-23 17:18:57 -04:00
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
keepalive_timeout 2;
|
|
|
|
client_max_body_size 4M;
|
|
|
|
|
2014-05-22 09:21:38 -07:00
|
|
|
set_real_ip_from 0.0.0.0/0;
|
|
|
|
real_ip_header X-Forwarded-For;
|
|
|
|
# real_ip_recursive on;
|
|
|
|
|
2011-02-09 15:45:41 -05:00
|
|
|
gzip on;
|
|
|
|
gzip_static on;
|
|
|
|
gzip_comp_level 2;
|
2011-03-23 17:18:57 -04:00
|
|
|
gzip_proxied any;
|
|
|
|
gzip_vary on;
|
|
|
|
gzip_types text/plain text/css application/x-javascript application/json text/xml application/xml application/xml+rss text/javascript;
|
2012-03-05 19:18:40 -08:00
|
|
|
|
2011-02-09 15:45:41 -05:00
|
|
|
include /usr/local/nginx/conf/sites-enabled/*;
|
2011-03-21 20:07:24 -04:00
|
|
|
}
|