0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00

Set consistent max body size

And make it configurable
This commit is contained in:
Andrey Antukh 2022-04-01 13:33:56 +02:00 committed by Andrés Moya
parent 602b736163
commit c026d05bc3
3 changed files with 5 additions and 3 deletions

View file

@ -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)))

View file

@ -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)

View file

@ -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;