deploy/templates/nginx.static.conf.j2
changeset 10 28971cf04a91
parent 2 f72ffe8b30b1
equal deleted inserted replaced
9:3458ef964882 10:28971cf04a91
     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 
    21     root {{remote_static_path}}/;
    21     root {{remote_static_path}}/;
    22     index index.html index.htm;
    22     index index.html index.htm;
    23 
    23 
    24 
    24 
    25     location {{annotations_api_url}}/ {
    25     location {{annotations_api_url}}/ {
    26         uwsgi_pass  annotation-api;
    26         uwsgi_pass  {{annotations_api_upstream_name}};
    27         include /etc/nginx/uwsgi_params;
    27         include /etc/nginx/uwsgi_params;
    28     }
    28     }
    29 
    29 
    30     location {{discussions_url}}/ {
    30     location {{discussions_url}}/ {
    31         uwsgi_pass  discussion-api;
    31         uwsgi_pass  {{discussions_api_upstream_name}};
    32         include /etc/nginx/uwsgi_params;
    32         include /etc/nginx/uwsgi_params;
    33     }
    33     }
    34 
    34 
    35     location / {
    35     location / {
    36         # First attempt to serve request as file, then
    36         # First attempt to serve request as file, then