You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
Copy file name to clipboardExpand all lines: docusaurus/docs/dev-docs/deployment/digitalocean.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -273,6 +273,16 @@ Your Strapi project is now installed on your DigitalOcean Droplet. Before being
273
273
proxy_set_header Host $host;
274
274
proxy_cache_bypass $http_upgrade;
275
275
```
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
+
```
276
286
277
287
2. Close the port to outside traffic by running the following commands:
0 commit comments