From 5fd7aee3da6beabdc1ca90d97616c4330d6763d3 Mon Sep 17 00:00:00 2001 From: "Oliver B. Fischer" Date: Thu, 19 Oct 2017 17:37:18 +0200 Subject: [PATCH] Documented how a user can disable the service registration if this is not wanted. (#363) --- docs/src/main/asciidoc/spring-cloud-consul.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/main/asciidoc/spring-cloud-consul.adoc b/docs/src/main/asciidoc/spring-cloud-consul.adoc index 89ed1d5e..9912de8f 100644 --- a/docs/src/main/asciidoc/spring-cloud-consul.adoc +++ b/docs/src/main/asciidoc/spring-cloud-consul.adoc @@ -74,6 +74,8 @@ The default service name, instance id and port, taken from the `Environment`, ar To disable the Consul Discovery Client you can set `spring.cloud.consul.discovery.enabled` to `false`. +To disable the service registration you can set `spring.cloud.consul.discovery.register` to `false`. + === HTTP Health Check The health check for a Consul instance defaults to "/health", which is the default locations of a useful endpoint in a Spring Boot Actuator application. You need to change these, even for an Actuator application if you use a non-default context path or servlet path (e.g. `server.servletPath=/foo`) or management endpoint path (e.g. `management.context-path=/admin`). The interval that Consul uses to check the health endpoint may also be configured. "10s" and "1m" represent 10 seconds and 1 minute respectively. Example: