Search code examples
spring-bootspring-cloudnetflix-zuul

Disabling Eureka Client when running Zuul Server


I am trying to use Zuul as reverse proxy without discovery server. Things seem to work. One thing that bothers me is that the discovery client keeps looking for a discovery server. How do I disable this behavior?


Solution

  • Solution is as simple as adding this to application.yml:

    eureka:
      client:
        enabled: false
    

    As suggested by @spencergibb below, excluding the eureka dependencies also disables the discovery client. I ended up choosing this latter approach as it inherently simplifies my build.