From d2a404a29d2c9d66a0f8fe0d4a9083c018567511 Mon Sep 17 00:00:00 2001 From: abuhelos Date: Fri, 21 Jun 2024 16:30:49 -0600 Subject: [PATCH 1/2] Add info about nginx max file size to config instructions --- docusaurus/docs/dev-docs/deployment/digitalocean.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docusaurus/docs/dev-docs/deployment/digitalocean.md b/docusaurus/docs/dev-docs/deployment/digitalocean.md index e45c923f14..03d41f2fee 100644 --- a/docusaurus/docs/dev-docs/deployment/digitalocean.md +++ b/docusaurus/docs/dev-docs/deployment/digitalocean.md @@ -273,6 +273,16 @@ Your Strapi project is now installed on your DigitalOcean Droplet. Before being proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; ``` + * Nginx has a [config setting](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) called `client_max_body_size` that will prevent file uploads greater than the specified amount. This will need to be adjusted since its default is only 1MB. Note that strapi middleware is already in charge of parsing requests of file sizes up to 200MB. + ``` + ... + http { + ... + client_max_body_size 200m; # Or 0 to disable + ... + } + ... + ``` 2. Close the port to outside traffic by running the following commands: From 9e3db0b8836e21aabfb1bf8411d9ff79f859592a Mon Sep 17 00:00:00 2001 From: Pierre Wizla Date: Mon, 24 Jun 2024 16:54:58 +0200 Subject: [PATCH 2/2] Update docusaurus/docs/dev-docs/deployment/digitalocean.md --- docusaurus/docs/dev-docs/deployment/digitalocean.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/dev-docs/deployment/digitalocean.md b/docusaurus/docs/dev-docs/deployment/digitalocean.md index 03d41f2fee..140cd34fd6 100644 --- a/docusaurus/docs/dev-docs/deployment/digitalocean.md +++ b/docusaurus/docs/dev-docs/deployment/digitalocean.md @@ -273,7 +273,7 @@ Your Strapi project is now installed on your DigitalOcean Droplet. Before being proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; ``` - * Nginx has a [config setting](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) called `client_max_body_size` that will prevent file uploads greater than the specified amount. This will need to be adjusted since its default is only 1MB. Note that strapi middleware is already in charge of parsing requests of file sizes up to 200MB. + * Nginx has a [configuration setting](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) called `client_max_body_size` that will prevent file uploads greater than the specified amount. This will need to be adjusted since its default is only 1MB. Note that strapi middleware is already in charge of parsing requests of file sizes up to 200MB. ``` ... http {