Sergio Slobodrian | 8423077 | 2017-04-24 16:33:39 -0400 | [diff] [blame] | 1 | location /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 | |
| 7 | location /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 Slobodrian | e6e2151 | 2017-04-26 19:32:22 -0400 | [diff] [blame] | 13 | location /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 Slobodrian | 8423077 | 2017-04-24 16:33:39 -0400 | [diff] [blame] | 19 | location /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 | |