set chunk-size to 5
Test Workflow / test (push) Successful in 8s

This commit is contained in:
vladp
2025-12-26 20:30:38 +07:00
parent a33c53fa6b
commit 254fdc0fbd
2 changed files with 14 additions and 18 deletions
+13 -17
View File
@@ -16,29 +16,22 @@ spring:
servlet:
multipart:
max-file-size: 10MB
max-request-size: 100MB
enabled: true
resolve-lazily: true
file-size-threshold: 0
max-file-size: 10GB
max-request-size: 10GB
resolve-lazily: false
file:
storage:
base-path: ${FILE_STORAGE_PATH:/data/uploads}
chunk-size: ${FILE_CHUNK_SIZE:5242880} # 5MB
# chunk-size: ${FILE_CHUNK_SIZE:5242880} # 5MB
chunk-size: ${FILE_CHUNK_SIZE:1000000} # 15MB
max-file-size: ${MAX_FILE_SIZE:10737418240} # 10GB
max-retry-attempts: ${MAX_RETRY_ATTEMPTS:3}
chunk-timeout-ms: ${CHUNK_TIMEOUT_MS:300000}
temp-ttl-hours: ${TEMP_TTL_HOURS:72}
chunk-timeout-ms: ${CHUNK_TIMEOUT_MS:300000} # 5 минут
temp-ttl-hours: ${TEMP_TTL_HOURS:72} # 3 дня
session-expiry-hours: ${SESSION_EXPIRY_HOURS:24}
server:
port: ${SERVER_PORT:8080}
tomcat:
max-swallow-size: -1
max-http-form-post-size: -1
connection-timeout: 300000
security:
cors:
allowed-origins: "*"
@@ -46,12 +39,15 @@ security:
allowed-headers: "*"
allow-credentials: true
server:
port: ${SERVER_PORT:8080}
logging:
level:
com.example.fileupload: DEBUG
org.springframework.web: DEBUG
org.springframework.web.multipart: TRACE
org.apache.tomcat: DEBUG
org.hibernate.SQL: DEBUG
file:
name: logs/application.log
name: logs/application.log
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"