diff --git a/backend/src/app/http.clj b/backend/src/app/http.clj index 38c9340d0..282c286a5 100644 --- a/backend/src/app/http.clj +++ b/backend/src/app/http.clj @@ -44,7 +44,7 @@ (merge {:name "http" :port 6060 :host "0.0.0.0" - :max-body-size (* 1024 1024 24) ; 24 MiB + :max-body-size (* 1024 1024 30) ; 30 MiB :max-multipart-body-size (* 1024 1024 120)} ; 120 MiB (d/without-nils cfg))) diff --git a/backend/src/app/main.clj b/backend/src/app/main.clj index 455964fdb..df77de7b8 100644 --- a/backend/src/app/main.clj +++ b/backend/src/app/main.clj @@ -115,7 +115,9 @@ :router (ig/ref :app.http/router) :metrics (ig/ref :app.metrics/metrics) :executor (ig/ref [::default :app.worker/executor]) - :io-threads (cf/get :http-server-io-threads)} + :io-threads (cf/get :http-server-io-threads) + :max-body-size (cf/get :http-server-max-body-size) + :max-multipart-body-size (cf/get :http-server-max-multipart-body-size)} :app.http/router {:assets (ig/ref :app.http.assets/handlers) diff --git a/docker/devenv/files/nginx.conf b/docker/devenv/files/nginx.conf index 2d6280781..ad9b488ea 100644 --- a/docker/devenv/files/nginx.conf +++ b/docker/devenv/files/nginx.conf @@ -46,7 +46,7 @@ http { listen 3449 default_server; server_name _; - client_max_body_size 50M; + client_max_body_size 30M; charset utf-8; proxy_http_version 1.1;