refactor(config): clean YAML configuration

This commit is contained in:
Pablo de la Torre Jamardo 2025-09-15 08:28:36 +02:00
parent f04fb14192
commit ee88068d99

View File

@ -1,9 +1,17 @@
info:
app:
version: @project.version@
app:
encryption:
secret: ${APP_ENCRYPTION_SECRET}
server:
port: 8080
servlet:
context-path: /api
forward-headers-strategy: framework
spring:
application:
name: restemailbridge
@ -11,6 +19,12 @@ spring:
resources:
add-mappings: false
datasource:
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: validate
@ -18,6 +32,7 @@ spring:
hibernate.transaction.jta.platform: org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform
hibernate:
format_sql: true
dialect: org.hibernate.dialect.PostgreSQLDialect
show-sql: true
jackson:
@ -31,31 +46,8 @@ springdoc:
path: /swagger-ui
show-actuator: true
server:
port: 8080
servlet:
context-path: /api
forward-headers-strategy: framework
gmail:
oauth2:
clientId: ${GMAIL_OAUTH_CLIENT_ID}
clientSecret: ${GMAIL_OAUTH_CLIENT_SECRET}
redirectUri: http://localhost:8888/Callback
---
spring:
config:
activate:
on-profile: default
datasource:
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:
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect