Fix: Suppression de quarkus.http.root-path pour compatibilité avec Ingress rewrite-target
Le backend sert maintenant les endpoints directement sans préfixe de contexte: - /api/v1/users au lieu de /btpxpress/api/v1/users - /q/health/ready au lieu de /btpxpress/q/health/ready - /openapi au lieu de /btpxpress/openapi L'Ingress nginx gère le préfixe /btpxpress et le retire avant de transmettre au backend. Cela corrige les erreurs 404 sur tous les endpoints REST.
This commit is contained in:
@@ -39,7 +39,7 @@ ENV JAVA_OPTS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss
|
|||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||||
CMD curl -f http://localhost:8080/btpxpress/q/health/ready || exit 1
|
CMD curl -f http://localhost:8080/q/health/ready || exit 1
|
||||||
|
|
||||||
ENTRYPOINT [ "java", "-jar", "/deployments/app.jar" ]
|
ENTRYPOINT [ "java", "-jar", "/deployments/app.jar" ]
|
||||||
|
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ quarkus.hibernate-orm.log.bind-parameters=false
|
|||||||
# Serveur HTTP
|
# Serveur HTTP
|
||||||
quarkus.http.port=${SERVER_PORT:8080}
|
quarkus.http.port=${SERVER_PORT:8080}
|
||||||
quarkus.http.host=0.0.0.0
|
quarkus.http.host=0.0.0.0
|
||||||
quarkus.http.root-path=/btpxpress
|
# Note: Ingress nginx uses rewrite-target to strip /btpxpress prefix before forwarding
|
||||||
# Note: Backend is aware of the /btpxpress context path
|
# Backend serves endpoints directly without context path (e.g., /api/v1/users, /q/health)
|
||||||
# Ingress should NOT use rewrite-target to preserve the full path
|
# External URL: https://api.lions.dev/btpxpress/... → Backend receives: /...
|
||||||
|
|
||||||
# CORS Configuration pour production
|
# CORS Configuration pour production
|
||||||
quarkus.http.cors=true
|
quarkus.http.cors=true
|
||||||
|
|||||||
Reference in New Issue
Block a user