Documented how a user can disable the service registration if this is not wanted. (#363)

This commit is contained in:
Oliver B. Fischer
2017-10-19 17:37:18 +02:00
committed by Spencer Gibb
parent 64e610adac
commit 5fd7aee3da

View File

@@ -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: