From 633dcc3f86c73f78f7b89043b33afbfca1771fbf Mon Sep 17 00:00:00 2001 From: dahoud Date: Fri, 27 Feb 2026 05:40:02 +0000 Subject: [PATCH] fix: Enable proxy forwarding for ingress nginx headers - Add quarkus.http.proxy.* properties to read X-Forwarded-* headers - Fixes redirect issue where Swagger UI redirects to /q/swagger-ui/ instead of /lions-user-manager/q/swagger-ui/ - Allows Quarkus to reconstruct original URL from ingress headers --- src/main/resources/application-prod.properties | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 3e41ebc..3bd4c28 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -12,6 +12,12 @@ quarkus.http.port=8080 # quarkus.http.root-path est une propriete build-time — passee via -Dquarkus.http.root-path dans le Dockerfile quarkus.http.cors.origins=${CORS_ORIGINS:https://users.lions.dev,https://btpxpress.lions.dev,https://admin.lions.dev} +# Proxy forwarding pour ingress nginx (permet à Quarkus de lire X-Forwarded-* headers) +quarkus.http.proxy.proxy-address-forwarding=true +quarkus.http.proxy.allow-x-forwarded=true +quarkus.http.proxy.enable-forwarded-host=true +quarkus.http.proxy.enable-forwarded-prefix=true + # ============================================ # OIDC Configuration PROD # ============================================