refactor(config): clean YAML configuration
This commit is contained in:
parent
f04fb14192
commit
ee88068d99
@ -1,9 +1,17 @@
|
|||||||
info:
|
info:
|
||||||
app:
|
app:
|
||||||
version: @project.version@
|
version: @project.version@
|
||||||
|
|
||||||
app:
|
app:
|
||||||
encryption:
|
encryption:
|
||||||
secret: ${APP_ENCRYPTION_SECRET}
|
secret: ${APP_ENCRYPTION_SECRET}
|
||||||
|
|
||||||
|
server:
|
||||||
|
port: 8080
|
||||||
|
servlet:
|
||||||
|
context-path: /api
|
||||||
|
forward-headers-strategy: framework
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: restemailbridge
|
name: restemailbridge
|
||||||
@ -11,6 +19,12 @@ spring:
|
|||||||
resources:
|
resources:
|
||||||
add-mappings: false
|
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:
|
jpa:
|
||||||
hibernate:
|
hibernate:
|
||||||
ddl-auto: validate
|
ddl-auto: validate
|
||||||
@ -18,6 +32,7 @@ spring:
|
|||||||
hibernate.transaction.jta.platform: org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform
|
hibernate.transaction.jta.platform: org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform
|
||||||
hibernate:
|
hibernate:
|
||||||
format_sql: true
|
format_sql: true
|
||||||
|
dialect: org.hibernate.dialect.PostgreSQLDialect
|
||||||
show-sql: true
|
show-sql: true
|
||||||
|
|
||||||
jackson:
|
jackson:
|
||||||
@ -31,31 +46,8 @@ springdoc:
|
|||||||
path: /swagger-ui
|
path: /swagger-ui
|
||||||
show-actuator: true
|
show-actuator: true
|
||||||
|
|
||||||
server:
|
|
||||||
port: 8080
|
|
||||||
servlet:
|
|
||||||
context-path: /api
|
|
||||||
forward-headers-strategy: framework
|
|
||||||
|
|
||||||
gmail:
|
gmail:
|
||||||
oauth2:
|
oauth2:
|
||||||
clientId: ${GMAIL_OAUTH_CLIENT_ID}
|
clientId: ${GMAIL_OAUTH_CLIENT_ID}
|
||||||
clientSecret: ${GMAIL_OAUTH_CLIENT_SECRET}
|
clientSecret: ${GMAIL_OAUTH_CLIENT_SECRET}
|
||||||
redirectUri: http://localhost:8888/Callback
|
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
|
|
Loading…
x
Reference in New Issue
Block a user