Skip to content

Instantly share code, notes, and snippets.

@gokulnath
Created March 8, 2013 10:28
Show Gist options
  • Save gokulnath/5115572 to your computer and use it in GitHub Desktop.
Save gokulnath/5115572 to your computer and use it in GitHub Desktop.
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
passenger_max_pool_size 30;
passenger_buffers 16 32k;
passenger_buffer_size 64k;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;
gzip_buffers 16 8k;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
server_names_hash_bucket_size 64;
client_max_body_size 20m;
include /usr/local/nginx/sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment