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}