From 1b8afccba2d0642752353155460c35bd1e587608 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 23 Feb 2026 13:58:20 +0100 Subject: [PATCH] :sparkles: Remove usage of multipart body size config on backend --- backend/deps.edn | 4 ++-- backend/src/app/config.clj | 1 - backend/src/app/http.clj | 7 +++---- backend/src/app/main.clj | 3 +-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/backend/deps.edn b/backend/deps.edn index 27d052c510..af73aecbc8 100644 --- a/backend/deps.edn +++ b/backend/deps.edn @@ -28,8 +28,8 @@ com.google.guava/guava {:mvn/version "33.4.8-jre"} funcool/yetti - {:git/tag "v11.8" - :git/sha "1d1b33f" + {:git/tag "v11.9" + :git/sha "5fad7a9" :git/url "https://github.com/funcool/yetti.git" :exclusions [org.slf4j/slf4j-api]} diff --git a/backend/src/app/config.clj b/backend/src/app/config.clj index 6b3f784170..d0a80f6515 100644 --- a/backend/src/app/config.clj +++ b/backend/src/app/config.clj @@ -98,7 +98,6 @@ [:http-server-port {:optional true} ::sm/int] [:http-server-host {:optional true} :string] [:http-server-max-body-size {:optional true} ::sm/int] - [:http-server-max-multipart-body-size {:optional true} ::sm/int] [:http-server-io-threads {:optional true} ::sm/int] [:http-server-max-worker-threads {:optional true} ::sm/int] diff --git a/backend/src/app/http.clj b/backend/src/app/http.clj index 0191589b05..1578138d05 100644 --- a/backend/src/app/http.clj +++ b/backend/src/app/http.clj @@ -42,8 +42,8 @@ (def default-params {::port 6060 ::host "0.0.0.0" - ::max-body-size 31457280 ; default 30 MiB - ::max-multipart-body-size 367001600}) ; default 350 MiB + ::max-body-size 367001600 ; default 350 MiB + }) (defmethod ig/expand-key ::server [k v] @@ -56,7 +56,6 @@ [::io-threads {:optional true} ::sm/int] [::max-worker-threads {:optional true} ::sm/int] [::max-body-size {:optional true} ::sm/int] - [::max-multipart-body-size {:optional true} ::sm/int] [::router {:optional true} [:fn r/router?]] [::handler {:optional true} ::sm/fn]]) @@ -79,7 +78,7 @@ {:http/port port :http/host host :http/max-body-size (::max-body-size cfg) - :http/max-multipart-body-size (::max-multipart-body-size cfg) + :http/max-multipart-body-size (::max-body-size cfg) :xnio/direct-buffers false :xnio/io-threads (::io-threads cfg) :xnio/max-worker-threads (::max-worker-threads cfg) diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index a5027bd190..693752080a 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -226,11 +226,10 @@ ::http/server {::http/port (cf/get :http-server-port) ::http/host (cf/get :http-server-host) - ::http/router (ig/ref ::http/router) ::http/io-threads (cf/get :http-server-io-threads) ::http/max-worker-threads (cf/get :http-server-max-worker-threads) ::http/max-body-size (cf/get :http-server-max-body-size) - ::http/max-multipart-body-size (cf/get :http-server-max-multipart-body-size) + ::http/router (ig/ref ::http/router) ::mtx/metrics (ig/ref ::mtx/metrics)} ::ldap/provider