fix: aligne les variables d'env application.yml avec le compose de production
CI — Tests & Docker Build / Tests (push) Successful in 1m39s
CI — Tests & Docker Build / Build & push image Docker (push) Successful in 2m47s

DATASOURCE_URL/USERNAME/PASSWORD correspondent aux variables définies dans
le docker-compose.yml de l'Infra. Ajout de cors.allowed-origin pour le futur.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 08:49:52 +02:00
parent a739282755
commit 6c8c01a90e
+6 -3
View File
@@ -1,8 +1,8 @@
spring: spring:
datasource: datasource:
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:olhar} url: ${DATASOURCE_URL:jdbc:postgresql://localhost:5432/olhar}
username: ${DB_USER:olhar} username: ${DATASOURCE_USERNAME:olhar}
password: ${DB_PASSWORD:olhar} password: ${DATASOURCE_PASSWORD:olhar}
driver-class-name: org.postgresql.Driver driver-class-name: org.postgresql.Driver
jpa: jpa:
hibernate: hibernate:
@@ -30,3 +30,6 @@ security:
jwt: jwt:
secret: ${JWT_SECRET:changeme-in-production-use-a-long-random-string-at-least-256-bits} secret: ${JWT_SECRET:changeme-in-production-use-a-long-random-string-at-least-256-bits}
expiration-ms: ${JWT_EXPIRATION_MS:86400000} expiration-ms: ${JWT_EXPIRATION_MS:86400000}
cors:
allowed-origin: ${CORS_ALLOWED_ORIGIN_PROD:http://localhost:4200}