Tony Mack | 699c154 | 2014-05-20 16:28:16 -0400 | [diff] [blame] | 1 | upstream backend { |
2 | # least_conn; | ||||
Scott Baker | d198f40 | 2015-02-17 14:56:21 -0800 | [diff] [blame] | 3 | server unix:/var/run/uwsgi/xos.sock; |
Tony Mack | 699c154 | 2014-05-20 16:28:16 -0400 | [diff] [blame] | 4 | server 127.0.0.1:9001; |
Tony Mack | 699c154 | 2014-05-20 16:28:16 -0400 | [diff] [blame] | 5 | } |
6 | |||||
7 | |||||
8 | server { | ||||
Tony Mack | 7ca3122 | 2014-12-22 16:40:44 -0500 | [diff] [blame] | 9 | listen 80; |
Tony Mack | 699c154 | 2014-05-20 16:28:16 -0400 | [diff] [blame] | 10 | server_name 128.112.139.48; |
11 | |||||
12 | location /static/ { | ||||
Scott Baker | d198f40 | 2015-02-17 14:56:21 -0800 | [diff] [blame] | 13 | alias /opt/xos/core/static/; |
Tony Mack | 699c154 | 2014-05-20 16:28:16 -0400 | [diff] [blame] | 14 | expires 30d; |
15 | access_log off; | ||||
16 | } | ||||
17 | |||||
18 | location / { | ||||
19 | include /etc/nginx/uwsgi_params; | ||||
20 | uwsgi_pass backend; | ||||
21 | } | ||||
22 | } |