blob: 9b5d99641a8bed774368821c0617368fe629f557 [file] [log] [blame]
Tony Mack699c1542014-05-20 16:28:16 -04001upstream backend {
2 # least_conn;
Scott Baker926b6672015-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 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/ {
Scott Baker926b6672015-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
Scott Bakercd9362b2015-04-22 21:51:30 -070018 location /files/ {
19 alias /var/www/html/files/;
20 }
21
Tony Mack699c1542014-05-20 16:28:16 -040022 location / {
23 include /etc/nginx/uwsgi_params;
24 uwsgi_pass backend;
25 }
26}