From ab7b0fb3a828171a896bc5189d153d4986c2cf7c Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Mon, 25 Jun 2018 09:30:48 -0400 Subject: [PATCH] Clarify health and status url context path docs. Fixes #2804. --- docs/src/main/asciidoc/spring-cloud-netflix.adoc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-netflix.adoc b/docs/src/main/asciidoc/spring-cloud-netflix.adoc index e11ed6043..20f106191 100644 --- a/docs/src/main/asciidoc/spring-cloud-netflix.adoc +++ b/docs/src/main/asciidoc/spring-cloud-netflix.adoc @@ -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