fix: aligne les variables d'env application.yml avec le compose de production
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user