Files
no-copy/src/main/resources/application.yaml
T

42 lines
959 B
YAML
Raw Normal View History

spring:
datasource:
url: jdbc:postgresql://${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
username: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
driver-class-name: org.postgresql.Driver
jpa:
hibernate:
ddl-auto: update
show-sql: true
2025-12-15 19:49:09 +07:00
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true
servlet:
multipart:
max-file-size: 10MB
max-request-size: 100MB
enabled: true
resolve-lazily: false
file:
storage:
base-path: ${FILE_STORAGE_PATH:./uploads}
chunk-size: 5242880 # 5MB
temp-ttl-hours: 24
max-file-size: 10737418240 # 10GB
server:
port: ${SERVER_PORT:8080}
logging:
level:
2025-12-15 19:49:09 +07:00
com.example.fileupload: DEBUG
org.springframework.web: DEBUG
org.hibernate.SQL: DEBUG
file:
name: logs/application.log
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"