Created
December 4, 2013 00:22
-
-
Save danielnolan/7780213 to your computer and use it in GitHub Desktop.
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
user www-data; | |
worker_processes 4; | |
pid /var/run/nginx.pid; | |
worker_rlimit_nofile 8192; | |
events { | |
worker_connections 8000; | |
} | |
http { | |
## | |
# Basic Settings | |
## | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay off; | |
types_hash_max_size 2048; | |
server_tokens off; | |
include /etc/nginx/conf/mime.types; | |
default_type application/octet-stream; | |
# Seconds | |
keepalive_timeout 20; | |
## | |
# Logging Settings | |
## | |
log_format main '$remote_addr - $remote_user [$time_local] $status ' | |
'"$request" $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
## | |
# Gzip Settings | |
## | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_comp_level 5; | |
gzip_min_length 512; | |
gzip_buffers 4 8k; | |
gzip_proxied any; | |
# text/html is always compressed by HttpGzipModule | |
gzip_types text/css text/plain text/x-component application/javascript application/json application/xml application/xhtml+xml application/x-font-ttf application/x-font-opentype application/vnd.ms-fontobject image/svg+xml image/x-icon; | |
# No gzip support for > IE6 | |
gzip_disable "MSIE [1-6]\."; | |
gzip_vary on; | |
## | |
# nginx-passenger config | |
## | |
passenger_root /home/deploy/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/passenger-4.0.26; | |
passenger_ruby /home/deploy/.rbenv/versions/2.0.0-p353/bin/ruby; | |
## | |
# Virtual Host Configs | |
## | |
include /etc/nginx/sites-enabled/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment