blob: d8d0d7a051752e52ca15d71f65476f6bf006700b [file] [log] [blame]
Sergio Slobodriand9ec6002017-04-25 08:09:11 -04001location /ui {
2 proxy_pass http://api-consul/;
3 rewrite /ui/(.*) /ui/$1 break;
4 proxy_next_upstream error timeout invalid_header http_500;
5}
6
7location /v1 {
8 proxy_pass http://api-consul/;
9 rewrite /v1/(.*) /v1/$1 break;
10 proxy_next_upstream error timeout invalid_header http_500;
11}
12
13location /consul {
14 proxy_pass http://api-consul/;
15 rewrite /consul/(.*) /$1 break;
16 sub_filter "/ui" "/consul/ui";
17 sub_filter "/v1" "/consul/v1";
18 #sub_filter "//" "/";
19 #sub_filter "href='" "href='swagger/";
20 #sub_filter 'href="' 'href="swagger/';
21 #sub_filter "src='" "src='swagger/";
22 #sub_filter 'src="' 'src="swagger/';
23 #sub_filter "/api/v1" "/swagger/api/v1";
24 sub_filter_once off;
25 proxy_next_upstream error timeout invalid_header http_500;
26}
27