32 lines
814 B
YAML
32 lines
814 B
YAML
spring:
|
|
datasource:
|
|
url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/${DB_NAME:goi}
|
|
username: ${DB_USER}
|
|
password: ${DB_PASSWORD}
|
|
driver-class-name: org.postgresql.Driver
|
|
jpa:
|
|
hibernate:
|
|
ddl-auto: validate
|
|
show-sql: false
|
|
properties:
|
|
hibernate:
|
|
format_sql: true
|
|
database: postgresql
|
|
database-platform: org.hibernate.dialect.PostgreSQLDialect
|
|
autoconfigure:
|
|
exclude: org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration
|
|
application:
|
|
security:
|
|
jwt:
|
|
secret-key: ${SECRET_KEY}
|
|
expiration: 86400000 # a day
|
|
refresh-token:
|
|
expiration: 604800000 # 7 days
|
|
pagination:
|
|
default-page: 0
|
|
default-size: 20
|
|
max-size: 100
|
|
server:
|
|
port: 8082
|
|
servlet:
|
|
context-path: /crm-rest-api |