Skip to content

Commit 6c57eb6

Browse files
committed
Do not add host:port to Health path in Health UI
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)
1 parent 1b2e431 commit 6c57eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ void registerUiExtension(
391391
}
392392

393393
String healthPath = nonApplicationRootPathBuildItem.resolveManagementPath(healthConfig.rootPath,
394-
managementInterfaceBuildTimeConfig, launchModeBuildItem);
394+
managementInterfaceBuildTimeConfig, launchModeBuildItem, false);
395395

396396
webJarBuildProducer.produce(
397397
WebJarBuildItem.builder().artifactKey(HEALTH_UI_WEBJAR_ARTIFACT_KEY) //

0 commit comments

Comments
 (0)