Commit ab7b0fb3 by Ryan Baxter

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

parent 7b75fe93
...@@ -108,21 +108,23 @@ The status page and health indicators for a Eureka instance default to ...@@ -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 useful endpoints in a Spring Boot Actuator application. You need to
change these, even for an Actuator application if you use a change these, even for an Actuator application if you use a
non-default context path or servlet path non-default context path or servlet path
(e.g. `server.servletPath=/foo`) or management endpoint path (e.g. `server.servletPath=/foo`) Example:
(e.g. `management.contextPath=/admin`). Example:
.application.yml .application.yml
---- ----
eureka: eureka:
instance: instance:
statusPageUrlPath: ${management.context-path}/info statusPageUrlPath: ${server.servletPath}/info
healthCheckUrlPath: ${management.context-path}/health healthCheckUrlPath: ${server.servletPath}/health
---- ----
These links show up in the metadata that is consumed by clients, and 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 used in some scenarios to decide whether to send requests to your
application, so it's helpful if they are accurate. 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 === Registering a Secure Application
If your app wants to be contacted over HTTPS you can set two flags in If your app wants to be contacted over HTTPS you can set two flags in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment