+1
-1
@@ -34,7 +34,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
FILE_STORAGE_PATH: /data/uploads
|
FILE_STORAGE_PATH: /data/uploads
|
||||||
MAX_FILE_SIZE: 10737418240
|
MAX_FILE_SIZE: 10737418240
|
||||||
FILE_CHUNK_SIZE: 5242880
|
FILE_CHUNK_SIZE: 1000000
|
||||||
POSTGRES_DB: no_copy_
|
POSTGRES_DB: no_copy_
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|||||||
@@ -16,29 +16,22 @@ spring:
|
|||||||
|
|
||||||
servlet:
|
servlet:
|
||||||
multipart:
|
multipart:
|
||||||
|
max-file-size: 10MB
|
||||||
|
max-request-size: 100MB
|
||||||
enabled: true
|
enabled: true
|
||||||
resolve-lazily: true
|
resolve-lazily: false
|
||||||
file-size-threshold: 0
|
|
||||||
max-file-size: 10GB
|
|
||||||
max-request-size: 10GB
|
|
||||||
|
|
||||||
file:
|
file:
|
||||||
storage:
|
storage:
|
||||||
base-path: ${FILE_STORAGE_PATH:/data/uploads}
|
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-file-size: ${MAX_FILE_SIZE:10737418240} # 10GB
|
||||||
max-retry-attempts: ${MAX_RETRY_ATTEMPTS:3}
|
max-retry-attempts: ${MAX_RETRY_ATTEMPTS:3}
|
||||||
chunk-timeout-ms: ${CHUNK_TIMEOUT_MS:300000}
|
chunk-timeout-ms: ${CHUNK_TIMEOUT_MS:300000} # 5 минут
|
||||||
temp-ttl-hours: ${TEMP_TTL_HOURS:72}
|
temp-ttl-hours: ${TEMP_TTL_HOURS:72} # 3 дня
|
||||||
session-expiry-hours: ${SESSION_EXPIRY_HOURS:24}
|
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:
|
security:
|
||||||
cors:
|
cors:
|
||||||
allowed-origins: "*"
|
allowed-origins: "*"
|
||||||
@@ -46,12 +39,15 @@ security:
|
|||||||
allowed-headers: "*"
|
allowed-headers: "*"
|
||||||
allow-credentials: true
|
allow-credentials: true
|
||||||
|
|
||||||
|
server:
|
||||||
|
port: ${SERVER_PORT:8080}
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
level:
|
level:
|
||||||
com.example.fileupload: DEBUG
|
com.example.fileupload: DEBUG
|
||||||
org.springframework.web: DEBUG
|
org.springframework.web: DEBUG
|
||||||
org.springframework.web.multipart: TRACE
|
|
||||||
org.apache.tomcat: DEBUG
|
|
||||||
org.hibernate.SQL: DEBUG
|
org.hibernate.SQL: DEBUG
|
||||||
file:
|
file:
|
||||||
name: logs/application.log
|
name: logs/application.log
|
||||||
|
pattern:
|
||||||
|
console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n"
|
||||||
Reference in New Issue
Block a user