Skip to content

Commit 52ce924

Browse files
abuhelospwizla
andauthored
Digital Ocean Droplet Deployment Edit: Add info about nginx max file size to config instructions (#2132)
* Add info about nginx max file size to config instructions * Update docusaurus/docs/dev-docs/deployment/digitalocean.md --------- Co-authored-by: Pierre Wizla <[email protected]>
1 parent 810732d commit 52ce924

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docusaurus/docs/dev-docs/deployment/digitalocean.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,16 @@ Your Strapi project is now installed on your DigitalOcean Droplet. Before being
273273
proxy_set_header Host $host;
274274
proxy_cache_bypass $http_upgrade;
275275
```
276+
* 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.
277+
```
278+
...
279+
http {
280+
...
281+
client_max_body_size 200m; # Or 0 to disable
282+
...
283+
}
284+
...
285+
```
276286

277287
2. Close the port to outside traffic by running the following commands:
278288

0 commit comments

Comments
 (0)