blob: c5ebddc42f2a129531cb7dd93a87e79d55b6b158 [file] [log] [blame]
Sergio Slobodrian84230772017-04-24 16:33:39 -04001location /api/v1/local {
2 proxy_pass http://api-swagger/;
3 rewrite /api/v1/(.*) /api/v1/$1 break;
4 proxy_next_upstream error timeout invalid_header http_500;
5}
6
7location /api/v1/global {
8 proxy_pass http://api-swagger/;
9 rewrite /api/v1/(.*) /api/v1/$1 break;
10 proxy_next_upstream error timeout invalid_header http_500;
11}
12
Sergio Slobodriane6e21512017-04-26 19:32:22 -040013location /health {
14 proxy_pass http://api-swagger/;
15 rewrite /health /health break;
16 proxy_next_upstream error timeout invalid_header http_500;
17}
18
Sergio Slobodrian84230772017-04-24 16:33:39 -040019location /swagger {
20 proxy_pass http://api-swagger/;
21 rewrite /swagger/(.*) /$1 break;
22 sub_filter "http://localhost/" "http://localhost/swagger/";
23 sub_filter "href='" "href='swagger/";
24 sub_filter 'href="' 'href="swagger/';
25 sub_filter "src='" "src='swagger/";
26 sub_filter 'src="' 'src="swagger/';
27 sub_filter_once off;
28 proxy_next_upstream error timeout invalid_header http_500;
29}
30