Reputation: 11571
Is it possible to exclude paths or matchers from the Zuul routing?
The goal is that
I have configuration like this:
zuul:
routes:
contract:
path: /contracts/**
url: http://contracts.example.com:8080/api
audit:
path: /audits/**
url: http://audit.example.com:8080
html:
path: /**
url: http://html.example.com:80
Now the question is how to define that /heartbeat and /sso isn't routed to html.example.com by zuul?
I'm using Spring Boot and its AutoConfiguration.
Upvotes: 9
Views: 15904
Reputation: 2676
As of Brixton.SR6
the ignoredPattern properties should be defined different in the application.yml
file. It should be defined as follows:
zuul:
ignoredPatterns: /heartbeat/**, /sso/**
routes:
contract:
path: /contracts/**
url: http://contracts.example.com:8080/api
Upvotes: 3
Reputation: 11571
There is a configuration property called ignored-patterns. With this it is possible to define matchers to exclude routes from routing.
zuul:
ignoredPatterns:
- /heartbeat/**
- /sso/**
routes:
contract:
path: /contracts/**
url: http://contracts.example.com:8080/api
audit:
path: /audits/**
url: http://audit.example.com:8080
html:
path: /**
url: http://html.example.com:80
Upvotes: 15