Sergio Slobodrian | e08ff53 | 2017-04-25 08:09:11 -0400 | [diff] [blame^] | 1 | location /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 | |
| 7 | location /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 | |
| 13 | location /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 | |