blob: 7910d84ed77d3de3bc65391a7cdd3450433693eb [file] [log] [blame]
Tony Mack699c1542014-05-20 16:28:16 -04001upstream backend {
2 # least_conn;
Scott Bakerd198f402015-02-17 14:56:21 -08003 server unix:/var/run/uwsgi/xos.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 Mack7ca31222014-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/ {
Scott Bakerd198f402015-02-17 14:56:21 -080013 alias /opt/xos/core/static/;
Tony Mack699c1542014-05-20 16:28:16 -040014 expires 30d;
15 access_log off;
16 }
17
18 location / {
19 include /etc/nginx/uwsgi_params;
20 uwsgi_pass backend;
21 }
22}