From 2c1a2aeb1689ef3c87276ac1584196c23b32571f Mon Sep 17 00:00:00 2001 From: vladp Date: Fri, 26 Dec 2025 19:10:43 +0700 Subject: [PATCH] add post size --- src/main/resources/application.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 08326e1..511bd2f 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -16,10 +16,11 @@ spring: servlet: multipart: - max-file-size: 10MB - max-request-size: 100MB enabled: true - resolve-lazily: false + resolve-lazily: true + file-size-threshold: 0 + max-file-size: 5242880 + max-request-size: 10485760 file: storage: @@ -31,6 +32,12 @@ 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 # Отключаем ограничения Tomcat + max-http-form-post-size: 10 + security: cors: allowed-origins: "*" @@ -38,8 +45,11 @@ security: allowed-headers: "*" allow-credentials: true -server: - port: ${SERVER_PORT:8080} +#server: +# port: ${SERVER_PORT:8080} +# +# + logging: level: