Skip to content

Instantly share code, notes, and snippets.

@kwilcox
Created May 1, 2015 15:47
Show Gist options
  • Save kwilcox/50b46aff1a8316403851 to your computer and use it in GitHub Desktop.
Save kwilcox/50b46aff1a8316403851 to your computer and use it in GitHub Desktop.
upstream sciwms {
server 127.0.0.1:{{sciwms_gunicorn_port}};
keepalive 32;
}
server {
listen {{sciwms_nginx_port}};
client_max_body_size 4G;
keepalive_timeout 5;
server_name _;
access_log /apps/sci-wms/logs/nginx.access.log;
error_log /apps/sci-wms/logs/nginx.error.log;
location /static {
alias /apps/sci-wms/static;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_read_timeout 300s;
proxy_pass http://sciwms;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment