From 4dbf1a8c621f67353dcbf1ff074f225bce1048d4 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Fri, 22 Nov 2024 15:53:07 +0100 Subject: [PATCH] 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 --- .../smallrye/health/deployment/SmallRyeHealthProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java b/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java index 3c0dfedea87ad..56e8c21c34b90 100644 --- a/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java +++ b/extensions/smallrye-health/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java @@ -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) //