diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 08326e1..3c96660 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -16,10 +16,11 @@ spring: servlet: multipart: + enabled: true + resolve-lazily: true # + file-size-threshold: 2KB # max-file-size: 10MB max-request-size: 100MB - enabled: true - resolve-lazily: false file: storage: @@ -31,6 +32,13 @@ file: 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 # + connection-timeout: 300000 # + max-http-header-size: 16KB + security: cors: allowed-origins: "*" @@ -38,13 +46,12 @@ 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 # ← ЛОГИ TOMCAT org.hibernate.SQL: DEBUG file: name: logs/application.log