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 | |
| 13 | location /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 | |