Skip to content

Instantly share code, notes, and snippets.

@yosemitebandit
Created September 29, 2011 23:34
Show Gist options
  • Save yosemitebandit/1252234 to your computer and use it in GitHub Desktop.
Save yosemitebandit/1252234 to your computer and use it in GitHub Desktop.
umbrella nginx conf for flask
user www-data;
worker_processes 4;
pid /var/run/nginx.pid;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
upstream app_server {
server 127.0.0.1:8000 fail_timeout=0;
}
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment