Tony Mack | 699c154 | 2014-05-20 16:28:16 -0400 | [diff] [blame] | 1 | upstream backend { |
| 2 | # least_conn; |
Tony Mack | 7ca3122 | 2014-12-22 16:40:44 -0500 | [diff] [blame^] | 3 | server unix:/var/run/uwsgi/planetstack.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/ { |
| 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 | } |