From 68b0c91fa7f572d99e575e7671fa2382b96f1f52 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Mon, 11 May 2015 10:08:06 -0600 Subject: [PATCH] document disabling of zuul filters fixes gh-341 --- docs/src/main/asciidoc/spring-cloud-netflix.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/src/main/asciidoc/spring-cloud-netflix.adoc b/docs/src/main/asciidoc/spring-cloud-netflix.adoc index cfbd9e43..cbba57b4 100644 --- a/docs/src/main/asciidoc/spring-cloud-netflix.adoc +++ b/docs/src/main/asciidoc/spring-cloud-netflix.adoc @@ -978,6 +978,16 @@ still specified by configuring "zuul.routes.*", but there is no service discover maps all paths in "/api/**" to the Zuul filter chain. +=== Disable Zuul Filters + +Zuul for Spring Cloud comes with a number of `ZuulFilter` beans enabled by default +in both proxy and server mode. See https://github.com/spring-cloud/spring-cloud-netflix/tree/master/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/zuul/filters[the zuul filters package] for the +possible filters that are enabled. If you want to disable one, simply set +`zuul...disable=true`. By convention, the package after +`filters` is the Zuul filter type. For example to disable +`org.springframework.cloud.netflix.zuul.filters.post.SendResponseFilter` set +`zuul.SendResponseFilter.post.disable=true`. + === Polyglot support with Sidecar Do you have non-jvm languages you want to take advantage of Eureka, Ribbon and