blob: 9e36360ff1d29b83236a489f8ece477cb839f2f1 [file] [log] [blame]
Tony Mack699c1542014-05-20 16:28:16 -04001upstream backend {
2 # least_conn;
Tony Mack3cd9c2d2014-12-22 16:40:44 -05003 server unix:/var/run/uwsgi/planetstack.sock;
Tony Mack699c1542014-05-20 16:28:16 -04004 server 127.0.0.1:9001;
Tony Mack699c1542014-05-20 16:28:16 -04005}
6
7
8server {
Tony Mack3cd9c2d2014-12-22 16:40:44 -05009 listen 80;
Tony Mack699c1542014-05-20 16:28:16 -040010 server_name 128.112.139.48;
11
12 location /static/ {
13 alias /opt/planetstack/core/static/;
14 expires 30d;
15 access_log off;
16 }
17
18 location / {
19 include /etc/nginx/uwsgi_params;
20 uwsgi_pass backend;
21 }
22}