81 lines
1.9 KiB
YAML
81 lines
1.9 KiB
YAML
spring:
|
|
jackson:
|
|
property-naming-strategy: SNAKE_CASE
|
|
deserialization:
|
|
fail-on-unknown-properties: true
|
|
lifecycle:
|
|
timeout-per-shutdown-phase: 20s
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 10MB
|
|
max-request-size: 12MB
|
|
|
|
spring:
|
|
datasource:
|
|
url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5433/lido_db}
|
|
username: ${SPRING_DATASOURCE_USERNAME:user}
|
|
password: ${SPRING_DATASOURCE_PASSWORD:user}
|
|
hikari:
|
|
maximum-pool-size: 10
|
|
minimum-idle: 2
|
|
connection-timeout: 3000
|
|
idle-timeout: 600000
|
|
max-lifetime: 1800000
|
|
validation-timeout: 2000
|
|
jpa:
|
|
open-in-view: false
|
|
hibernate:
|
|
ddl-auto: validate
|
|
properties:
|
|
hibernate:
|
|
jdbc:
|
|
time_zone: UTC
|
|
flyway:
|
|
enabled: ${FLYWAY_ENABLED:false}
|
|
locations: classpath:db/migration
|
|
redis:
|
|
host: ${SPRING_DATA_REDIS_HOST:localhost}
|
|
port: ${SPRING_DATA_REDIS_PORT:6379}
|
|
timeout: 300ms
|
|
connect-timeout: 300ms
|
|
lettuce:
|
|
shutdown-timeout: 100ms
|
|
repositories:
|
|
enabled: false
|
|
|
|
server:
|
|
address: 0.0.0.0
|
|
port: 8080
|
|
shutdown: graceful
|
|
|
|
app:
|
|
session-ttl-seconds: ${SESSION_TTL_SECONDS:604800}
|
|
s3:
|
|
endpoint: ${S3_ENDPOINT:http://minio:9000}
|
|
region: ${S3_REGION:eu-east-1}
|
|
bucket: ${S3_BUCKET:messenger-attachments}
|
|
access-key: ${S3_ACCESS_KEY}
|
|
secret-key: ${S3_SECRET_KEY}
|
|
path-style: true
|
|
|
|
logging:
|
|
pattern:
|
|
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} [req_id: %X{X-Request-Id}] - %msg%n"
|
|
level:
|
|
root=INFO:
|
|
org:
|
|
springframework:
|
|
web=DEBUG:
|
|
web:
|
|
filter:
|
|
CommonsRequestLoggingFilter=DEBUG:
|
|
:servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver: DEBUG
|
|
|
|
management:
|
|
endpoints:
|
|
web:
|
|
exposure:
|
|
include=health:
|
|
health:
|
|
show-details=always:
|