From ec2e9c0e36725da9846393766ca49609cd9b3f69 Mon Sep 17 00:00:00 2001 From: Pablo de la Torre Jamardo Date: Fri, 12 Sep 2025 16:52:39 +0200 Subject: [PATCH] refactor: simplify application.yml to only include database configuration --- bootstrap/src/main/resources/application.yml | 31 ++++---------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/bootstrap/src/main/resources/application.yml b/bootstrap/src/main/resources/application.yml index 6fc5aec..d53f254 100644 --- a/bootstrap/src/main/resources/application.yml +++ b/bootstrap/src/main/resources/application.yml @@ -32,6 +32,7 @@ server: servlet: context-path: /api forward-headers-strategy: framework + --- spring: @@ -40,32 +41,12 @@ spring: on-profile: default datasource: - url: jdbc:h2:file:./restemailbridge-db - driver-class-name: org.h2.Driver - username: sa - password: - jpa: - properties: - hibernate: - dialect: org.hibernate.dialect.H2Dialect - h2: - console: - enabled: true - path: /h2-console - ---- - -spring: - config: - activate: - on-profile: prod - - datasource: - url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:portfolio} + url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:default_db} username: ${DB_USER:postgres} password: ${DB_PASSWORD:postgres} driver-class-name: org.postgresql.Driver - jpa: - hibernate: - ddl-auto: update \ No newline at end of file + properties: + hibernate: + ddl-auto: update + dialect: org.hibernate.dialect.PostgreSQLDialect \ No newline at end of file