Skip to content

Instantly share code, notes, and snippets.

@huntwelch
Created March 7, 2014 17:35
Show Gist options
  • Select an option

  • Save huntwelch/9416053 to your computer and use it in GitHub Desktop.

Select an option

Save huntwelch/9416053 to your computer and use it in GitHub Desktop.
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
server_name mongobot.com www.mongobot.com;
location / { try_files $uri @server; }
location @server {
include uwsgi_params;
uwsgi_pass unix:/tmp/mongo.sock;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment