refactor: simplify application.yml to only include database configuration
This commit is contained in:
parent
4245006652
commit
ec2e9c0e36
@ -32,6 +32,7 @@ server:
|
|||||||
servlet:
|
servlet:
|
||||||
context-path: /api
|
context-path: /api
|
||||||
forward-headers-strategy: framework
|
forward-headers-strategy: framework
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
@ -40,32 +41,12 @@ spring:
|
|||||||
on-profile: default
|
on-profile: default
|
||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:h2:file:./restemailbridge-db
|
url: jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5432}/${DB_NAME:default_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}
|
|
||||||
username: ${DB_USER:postgres}
|
username: ${DB_USER:postgres}
|
||||||
password: ${DB_PASSWORD:postgres}
|
password: ${DB_PASSWORD:postgres}
|
||||||
driver-class-name: org.postgresql.Driver
|
driver-class-name: org.postgresql.Driver
|
||||||
|
|
||||||
jpa:
|
jpa:
|
||||||
hibernate:
|
properties:
|
||||||
ddl-auto: update
|
hibernate:
|
||||||
|
ddl-auto: update
|
||||||
|
dialect: org.hibernate.dialect.PostgreSQLDialect
|
Loading…
x
Reference in New Issue
Block a user