blob: 9e1669c94f20d183da4fd893515bcaa3c834b9df [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
13location /swagger {
14 proxy_pass http://api-swagger/;
15 rewrite /swagger/(.*) /$1 break;
16 sub_filter "http://localhost/" "http://localhost/swagger/";
17 sub_filter "href='" "href='swagger/";
18 sub_filter 'href="' 'href="swagger/';
19 sub_filter "src='" "src='swagger/";
20 sub_filter 'src="' 'src="swagger/';
21 sub_filter_once off;
22 proxy_next_upstream error timeout invalid_header http_500;
23}
24