Skip to content

Instantly share code, notes, and snippets.

@dcaliri
Created October 15, 2014 01:58
Show Gist options
  • Save dcaliri/9439e3ed5e70b7c5c1f8 to your computer and use it in GitHub Desktop.
Save dcaliri/9439e3ed5e70b7c5c1f8 to your computer and use it in GitHub Desktop.
/etc/nginx/nginx.conf
# This conf sample is fetched from http://unicorn.bogomips.org/examples/nginx.conf
worker_processes 4;
user root;
pid /tmp/nginx.pid;
error_log /tmp/nginx.error.log warn;
events {
worker_connections 1024;
accept_mutex off;
}
http {
include mime.types;
default_type application/octet-stream;
access_log /tmp/nginx.access.log combined;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 120;
send_timeout 120;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
# no text/html, see http://forum.slicehost.com/comments.php?DiscussionID=3763
gzip on;
gzip_http_version 1.0;
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;
upstream unicorns {
server unix:/tmp/.sock fail_timeout=0;
}
include /etc/nginx/conf.d/*.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment