[docs] Add client_max_body_size 40M; to nginx docs (#727)

This commit is contained in:
tobi 2022-07-22 13:36:42 +02:00 committed by GitHub
parent 73b8839c5d
commit 7b72ba4ab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,7 @@ server {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
client_max_body_size 40M;
}
```
@ -83,6 +84,8 @@ If you're running GoToSocial on another machine with the local ip of 192.168.178
**Note**: The `Connection` and `Upgrade` headers are used for WebSocket connections. See the [WebSocket docs](./websocket.md).
**Note**: `client_max_body_size` is set to 40M in this example, which is the default max video upload size for GoToSocial. You can make this value larger or smaller if necessary. The nginx default is only 1M, which is rather too small.
Next we'll need to link the file we just created to the folder that nginx reads configurations for active sites from.
```bash
@ -152,6 +155,7 @@ server {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
client_max_body_size 40M;
listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot