Skip to content

Commit 7b72ba4

Browse files
authored
[docs] Add client_max_body_size 40M; to nginx docs (#727)
1 parent 73b8839 commit 7b72ba4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/installation_guide/nginx.md

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ server {
6868
proxy_set_header X-Forwarded-For $remote_addr;
6969
proxy_set_header X-Forwarded-Proto $scheme;
7070
}
71+
client_max_body_size 40M;
7172
}
7273
```
7374

@@ -83,6 +84,8 @@ If you're running GoToSocial on another machine with the local ip of 192.168.178
8384

8485
**Note**: The `Connection` and `Upgrade` headers are used for WebSocket connections. See the [WebSocket docs](./websocket.md).
8586

87+
**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.
88+
8689
Next we'll need to link the file we just created to the folder that nginx reads configurations for active sites from.
8790

8891
```bash
@@ -152,6 +155,7 @@ server {
152155
proxy_set_header X-Forwarded-For $remote_addr;
153156
proxy_set_header X-Forwarded-Proto $scheme;
154157
}
158+
client_max_body_size 40M;
155159
156160
listen [::]:443 ssl ipv6only=on; # managed by Certbot
157161
listen 443 ssl; # managed by Certbot

0 commit comments

Comments
 (0)