Clarify health and status url context path docs. Fixes #2804.

This commit is contained in:
Ryan Baxter
2018-06-25 09:30:48 -04:00
parent 7b75fe934e
commit ab7b0fb3a8

View File

@@ -108,21 +108,23 @@ The status page and health indicators for a Eureka instance default to
useful endpoints 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.contextPath=/admin`). Example:
(e.g. `server.servletPath=/foo`) Example:
.application.yml
----
eureka:
instance:
statusPageUrlPath: ${management.context-path}/info
healthCheckUrlPath: ${management.context-path}/health
statusPageUrlPath: ${server.servletPath}/info
healthCheckUrlPath: ${server.servletPath}/health
----
These links show up in the metadata that is consumed by clients, and
used in some scenarios to decide whether to send requests to your
application, so it's helpful if they are accurate.
NOTE: In Dalston it was also required to set the status and health check URLs when changing
that management context path. This requirement was removed beinging in Edgware.
=== Registering a Secure Application
If your app wants to be contacted over HTTPS you can set two flags in