From 6c8c01a90ea58b4b9c9dfc5f1540cd603816162d Mon Sep 17 00:00:00 2001 From: Gato Date: Sun, 7 Jun 2026 08:49:52 +0200 Subject: [PATCH] fix: aligne les variables d'env application.yml avec le compose de production MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/main/resources/application.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index b5e03e8..07b5b80 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,8 +1,8 @@ spring: datasource: - url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:olhar} - username: ${DB_USER:olhar} - password: ${DB_PASSWORD:olhar} + url: ${DATASOURCE_URL:jdbc:postgresql://localhost:5432/olhar} + username: ${DATASOURCE_USERNAME:olhar} + password: ${DATASOURCE_PASSWORD:olhar} driver-class-name: org.postgresql.Driver jpa: hibernate: @@ -30,3 +30,6 @@ security: jwt: secret: ${JWT_SECRET:changeme-in-production-use-a-long-random-string-at-least-256-bits} expiration-ms: ${JWT_EXPIRATION_MS:86400000} + +cors: + allowed-origin: ${CORS_ALLOWED_ORIGIN_PROD:http://localhost:4200}