67 lines
1.4 KiB
YAML
67 lines
1.4 KiB
YAML
# Server configuration
|
|
server:
|
|
port: 8088
|
|
servlet:
|
|
context-path: /api
|
|
|
|
# Spring Boot configuration
|
|
spring:
|
|
data:
|
|
web:
|
|
pageable:
|
|
size-parameter: size
|
|
page-parameter: page
|
|
default-page-size: 20
|
|
one-indexed-parameters: true
|
|
max-page-size: 2000
|
|
application:
|
|
name: totopia-server
|
|
datasource:
|
|
driver-class-name: org.postgresql.Driver
|
|
url: jdbc:postgresql://localhost:15432/totopia
|
|
data-username: totopia
|
|
username: totopia
|
|
password: qwer5795
|
|
# JPA properties
|
|
initialization-mode: never
|
|
jpa:
|
|
hibernate:
|
|
ddl-auto: update
|
|
database: postgresql
|
|
show-sql: true
|
|
database-platform: org.hibernate.dialect.PostgreSQLDialect
|
|
properties:
|
|
hibernate:
|
|
temp:
|
|
use_jdbc_metadata_defaults: false
|
|
#Jackson properties
|
|
jackson:
|
|
serialization:
|
|
WRITE_DATES_AS_TIMESTAMPS: false
|
|
time-zone: UTC
|
|
|
|
# Logger configuration
|
|
logging:
|
|
pattern:
|
|
console: "%d %-5level %logger : %msg%n"
|
|
level:
|
|
root: ERROR
|
|
org.springframework: INFO
|
|
org.hibernate: DEBUG
|
|
|
|
|
|
#JWT properties
|
|
app:
|
|
db-init: true
|
|
jwt:
|
|
header: Authorization
|
|
header.prefix: Bearer
|
|
secret: mySecret
|
|
expiration: 900000
|
|
claims.refresh.name: Refresh
|
|
#Token properties
|
|
token:
|
|
email.verification.duration=3600000
|
|
password.reset.duration=3600000
|
|
refresh.duration=2592000000
|