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:
parent
602b736163
commit
c026d05bc3
3 changed files with 5 additions and 3 deletions
|
@ -44,7 +44,7 @@
|
||||||
(merge {:name "http"
|
(merge {:name "http"
|
||||||
:port 6060
|
:port 6060
|
||||||
:host "0.0.0.0"
|
: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
|
:max-multipart-body-size (* 1024 1024 120)} ; 120 MiB
|
||||||
(d/without-nils cfg)))
|
(d/without-nils cfg)))
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,9 @@
|
||||||
:router (ig/ref :app.http/router)
|
:router (ig/ref :app.http/router)
|
||||||
:metrics (ig/ref :app.metrics/metrics)
|
:metrics (ig/ref :app.metrics/metrics)
|
||||||
:executor (ig/ref [::default :app.worker/executor])
|
: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
|
:app.http/router
|
||||||
{:assets (ig/ref :app.http.assets/handlers)
|
{:assets (ig/ref :app.http.assets/handlers)
|
||||||
|
|
|
@ -46,7 +46,7 @@ http {
|
||||||
listen 3449 default_server;
|
listen 3449 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
client_max_body_size 50M;
|
client_max_body_size 30M;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue