Created
March 29, 2012 03:55
-
-
Save georges/2233163 to your computer and use it in GitHub Desktop.
nginx.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 1; | |
events { | |
worker_connections 1024; | |
accept_mutex off; | |
use epoll; | |
} | |
http { | |
passenger_root /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.11; | |
passenger_ruby /usr/local/bin/ruby; | |
# Passenger never sleeps! | |
passenger_pool_idle_time 0; | |
# Use more instances if you have memory enough | |
passenger_max_pool_size 15; | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay off; | |
keepalive_timeout 65; | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_comp_level 6; | |
gzip_proxied any; | |
gzip_min_length 500; | |
gzip_disable "MSIE [1-6]\."; | |
gzip_types text/plain text/xml text/css | |
text/comma-separated-values | |
text/javascript application/x-javascript | |
application/atom+xml application/xml | |
application/json application/xml+rss; | |
include /apps/*/shared/config/*.nginx.conf; | |
# Start application instantly | |
passenger_pre_start https://127.0.0.1/; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment