equal
deleted
inserted
replaced
1 upstream annotation-api { |
1 upstream {{annotations_api_upstream_name}} { |
2 server {{annotations_api_host}}:{{annotations_api_port}}; |
2 server {{annotations_api_host}}:{{annotations_api_port}}; |
3 server 127.0.0.1 backup; |
3 server 127.0.0.1 backup; |
4 } |
4 } |
5 |
5 |
6 upstream discussion-api { |
6 upstream {{discussions_api_upstream_name}} { |
7 server {{discussions_host}}:{{discussions_port}}; |
7 server {{discussions_host}}:{{discussions_port}}; |
8 server 127.0.0.1 backup; |
8 server 127.0.0.1 backup; |
9 } |
9 } |
10 |
10 |
11 |
11 |
42 default_type "text/plain"; |
42 default_type "text/plain"; |
43 try_files $uri =404; |
43 try_files $uri =404; |
44 } |
44 } |
45 |
45 |
46 location {{annotations_api_url}}/ { |
46 location {{annotations_api_url}}/ { |
47 uwsgi_pass annotation-api; |
47 uwsgi_pass {{annotations_api_upstream_name}}; |
48 include /etc/nginx/uwsgi_params; |
48 include /etc/nginx/uwsgi_params; |
49 } |
49 } |
50 |
50 |
51 location {{discussions_url}}/ { |
51 location {{discussions_url}}/ { |
52 uwsgi_pass discussion-api; |
52 uwsgi_pass {{discussions_api_upstream_name}}; |
53 include /etc/nginx/uwsgi_params; |
53 include /etc/nginx/uwsgi_params; |
54 } |
54 } |
55 |
55 |
56 location / { |
56 location / { |
57 # First attempt to serve request as file, then |
57 # First attempt to serve request as file, then |