Skip to content

Commit

Permalink
Do not add host:port to Health path in Health UI
Browse files Browse the repository at this point in the history
The Health UI will be served from the exact same interface so we don't
need to include the host:port.
It actually causes issues when you access the Health UI through a proxy
as it might point to 0.0.0.0:9000 which will resolve to localhost.

Fixes #35980

(cherry picked from commit 4dbf1a8)
  • Loading branch information
gsmet committed Nov 27, 2024
1 parent 1b2e431 commit 6c57eb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ void registerUiExtension(
}

String healthPath = nonApplicationRootPathBuildItem.resolveManagementPath(healthConfig.rootPath,
managementInterfaceBuildTimeConfig, launchModeBuildItem);
managementInterfaceBuildTimeConfig, launchModeBuildItem, false);

webJarBuildProducer.produce(
WebJarBuildItem.builder().artifactKey(HEALTH_UI_WEBJAR_ARTIFACT_KEY) //
Expand Down

0 comments on commit 6c57eb6

Please sign in to comment.