backend/bootstrap/src/main/resources/application-dev.yml
2025-08-19 00:21:25 +02:00

79 lines
1.9 KiB
YAML

spring:
security:
oauth2:
client:
registration:
google:
client-id: 1018440977117-me57ug4lqjgvcr1mg8fq17vpc18mvnsl.apps.googleusercontent.com
client-secret: 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
scope:
- profile
- email
provider:
google:
authorization-uri: https://accounts.google.com/o/oauth2/v2/auth
token-uri: https://www.googleapis.com/oauth2/v4/token
user-info-uri: https://www.googleapis.com/oauth2/v3/userinfo
user-name-attribute: sub
h2:
console:
enabled: 'false'
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
server:
port: 8083