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:
@@ -19,9 +19,9 @@ quarkus.hibernate-orm.log.bind-parameters=false
|
||||
# Serveur HTTP
|
||||
quarkus.http.port=${SERVER_PORT:8080}
|
||||
quarkus.http.host=0.0.0.0
|
||||
quarkus.http.root-path=/btpxpress
|
||||
# Note: Backend is aware of the /btpxpress context path
|
||||
# Ingress should NOT use rewrite-target to preserve the full path
|
||||
# Note: Ingress nginx uses rewrite-target to strip /btpxpress prefix before forwarding
|
||||
# Backend serves endpoints directly without context path (e.g., /api/v1/users, /q/health)
|
||||
# External URL: https://api.lions.dev/btpxpress/... → Backend receives: /...
|
||||
|
||||
# CORS Configuration pour production
|
||||
quarkus.http.cors=true
|
||||
|
||||
Reference in New Issue
Block a user