Zuul prefix when more than a single /path -
i have service path http://myhost.com/v2/1234/brand/order/issues/123 needs send actual call http://anotherhost.com/issues/123.
if want avoid solution write zuulfilter
is there way, configuration say: prefix /v2/*/*/order/issues , use 123?
zuul: routes: test2: path: /v2/*/*/orders/issues/** url: http://anotherhost.com/issues/ stripprefix: true
no, there's no way configure such behaviour. need create custom zuulfilter
by default zuul strip prefixes not contain special characters. e.g.
zuul: routes: test1: path: /orders/** <--- '/orders' stripped url: http://anotherhost.com/issues/ test2: path: /*/orders/** <--- nothing stripped url: http://anotherhost.com/issues/
Comments
Post a Comment