Search code examples
spring-bootspring-cloudnetflix-zuul

Zuul filter requests


I am using Zuul as reverse proxy deployed as a service using Spring Boot. And I have a configuration like:

zuul:
    routes:
       home:
          path: /**
          url: localhost:8080

But I want to use the /routes,/info,/health endpoints of the zuul server. Also I want add some endpoints to the zuul server. The problem is that I lost those endpoints because all requests are routed to localhost:8080.


Solution

  • ignoredPatterns in the latest version of ZUUL can help prevent reaching the /** mapping:

    zuul:  
      ignoredPatterns: "/routes/**,/info/**,/custom/**"