60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
---
|
|
spring:
|
|
h2:
|
|
console:
|
|
enabled: 'true'
|
|
|
|
datasource:
|
|
url: jdbc:h2:mem:xpeditis;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
|
|
driverClassName: org.h2.Driver
|
|
username: sa
|
|
password: ''
|
|
|
|
sql:
|
|
init:
|
|
platform: h2
|
|
mode: always
|
|
|
|
jpa:
|
|
show-sql: true
|
|
properties:
|
|
hibernate:
|
|
format_sql: true
|
|
# show_sql: true
|
|
database-platform: org.hibernate.dialect.H2Dialect
|
|
hibernate:
|
|
ddl-auto: update
|
|
# Just to load initial data for the demo. DO NOT USE IT IN PRODUCTION
|
|
defer-datasource-initialization: true
|
|
|
|
flyway: # flyway automatically uses the datasource from the application to connect to the DB
|
|
enabled: false # enables flyway database migration
|
|
|
|
mail:
|
|
host: sandbox.smtp.mailtrap.io
|
|
port: 2525
|
|
username: 2597bd31d265eb
|
|
password: cd126234193c89
|
|
properties:
|
|
mail:
|
|
smtp:
|
|
ssl:
|
|
trust:"*"
|
|
auth: true
|
|
starttls:
|
|
enable: true
|
|
connectiontimeout: 5000
|
|
timeout: 3000
|
|
writetimeout: 5000
|
|
|
|
application:
|
|
email:
|
|
from: randommailjf@gmail.com
|
|
csrf:
|
|
enabled: false
|
|
security:
|
|
jwt:
|
|
secret-key: 404E635266556A586E3272357538782F413F4428472B4B6250645367566B5970
|
|
expiration: 86400000 # a day
|
|
refresh-token:
|
|
expiration: 604800000 # 7 days |