Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digital Ocean Droplet Deployment Edit: Add info about nginx max file size to config instructions #2132

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docusaurus/docs/dev-docs/deployment/digitalocean.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [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 {
...
client_max_body_size 200m; # Or 0 to disable
...
}
...
```

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

Expand Down