2025-11-23 23:25:58 +07:00
|
|
|
spring:
|
|
|
|
|
datasource:
|
2025-11-24 21:04:50 +07:00
|
|
|
url: jdbc:postgresql://${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
|
|
|
|
|
username: ${POSTGRES_USER}
|
|
|
|
|
password: ${POSTGRES_PASSWORD}
|
|
|
|
|
driver-class-name: org.postgresql.Driver
|
2025-11-23 23:25:58 +07:00
|
|
|
|
|
|
|
|
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:
|
2025-12-26 19:50:32 +07:00
|
|
|
enabled: true
|
2025-12-26 20:18:18 +07:00
|
|
|
resolve-lazily: true
|
|
|
|
|
file-size-threshold: 0
|
|
|
|
|
max-file-size: 10GB
|
|
|
|
|
max-request-size: 10GB
|
2025-12-15 19:49:09 +07:00
|
|
|
|
|
|
|
|
file:
|
|
|
|
|
storage:
|
2025-12-16 03:44:59 +07:00
|
|
|
base-path: ${FILE_STORAGE_PATH:/data/uploads}
|
2025-12-26 20:18:18 +07:00
|
|
|
chunk-size: ${FILE_CHUNK_SIZE:5242880} # 5MB
|
2025-12-16 03:44:59 +07:00
|
|
|
max-file-size: ${MAX_FILE_SIZE:10737418240} # 10GB
|
|
|
|
|
max-retry-attempts: ${MAX_RETRY_ATTEMPTS:3}
|
2025-12-26 20:18:18 +07:00
|
|
|
chunk-timeout-ms: ${CHUNK_TIMEOUT_MS:300000}
|
|
|
|
|
temp-ttl-hours: ${TEMP_TTL_HOURS:72}
|
2025-12-16 03:44:59 +07:00
|
|
|
session-expiry-hours: ${SESSION_EXPIRY_HOURS:24}
|
2025-11-23 23:25:58 +07:00
|
|
|
|
2025-12-26 20:18:18 +07:00
|
|
|
server:
|
|
|
|
|
port: ${SERVER_PORT:8080}
|
|
|
|
|
tomcat:
|
|
|
|
|
max-swallow-size: -1
|
|
|
|
|
max-http-form-post-size: -1
|
|
|
|
|
connection-timeout: 300000
|
|
|
|
|
|
2025-12-17 01:19:48 +07:00
|
|
|
security:
|
|
|
|
|
cors:
|
|
|
|
|
allowed-origins: "*"
|
|
|
|
|
allowed-methods: GET,POST,PUT,DELETE,OPTIONS
|
|
|
|
|
allowed-headers: "*"
|
|
|
|
|
allow-credentials: true
|
|
|
|
|
|
2025-11-23 23:25:58 +07:00
|
|
|
logging:
|
|
|
|
|
level:
|
2025-12-15 19:49:09 +07:00
|
|
|
com.example.fileupload: DEBUG
|
|
|
|
|
org.springframework.web: DEBUG
|
2025-12-26 20:18:18 +07:00
|
|
|
org.springframework.web.multipart: TRACE
|
|
|
|
|
org.apache.tomcat: DEBUG
|
2025-12-15 19:49:09 +07:00
|
|
|
org.hibernate.SQL: DEBUG
|
|
|
|
|
file:
|
2025-12-26 20:18:18 +07:00
|
|
|
name: logs/application.log
|