5737: Fix test so call counts are as expected
[arvados.git] / sdk / python / tests / nginx.conf
1 daemon off;
2 error_log stderr info;          # Yes, must be specified here _and_ cmdline
3 events {
4 }
5 http {
6   access_log {{ACCESSLOG}} combined;
7   upstream arv-git-http {
8     server localhost:{{GITPORT}};
9   }
10   server {
11     listen *:{{GITSSLPORT}} ssl default_server;
12     server_name _;
13     ssl_certificate {{SSLCERT}};
14     ssl_certificate_key {{SSLKEY}};
15     location  / {
16       proxy_pass http://arv-git-http;
17     }
18   }
19   upstream keepproxy {
20     server localhost:{{KEEPPROXYPORT}};
21   }
22   server {
23     listen *:{{KEEPPROXYSSLPORT}} ssl default_server;
24     server_name _;
25     ssl_certificate {{SSLCERT}};
26     ssl_certificate_key {{SSLKEY}};
27     location  / {
28       proxy_pass http://keepproxy;
29     }
30   }
31   upstream keep-web {
32     server localhost:{{KEEPWEBPORT}};
33   }
34   server {
35     listen *:{{KEEPWEBSSLPORT}} ssl default_server;
36     server_name ~^(?<request_host>.*)$;
37     ssl_certificate {{SSLCERT}};
38     ssl_certificate_key {{SSLKEY}};
39     location  / {
40       proxy_pass http://keep-web;
41       proxy_set_header Host $request_host:{{KEEPWEBPORT}};
42       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
43     }
44   }
45   server {
46     listen *:{{KEEPWEBDLSSLPORT}} ssl default_server;
47     server_name ~.*;
48     ssl_certificate {{SSLCERT}};
49     ssl_certificate_key {{SSLKEY}};
50     location  / {
51       proxy_pass http://keep-web;
52       proxy_set_header Host download:{{KEEPWEBPORT}};
53       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
54       proxy_redirect //download:{{KEEPWEBPORT}}/ https://$host:{{KEEPWEBDLSSLPORT}}/;
55     }
56   }
57 }