Skip to content

Commit

Permalink
[docs] Add client_max_body_size 40M; to nginx docs (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmethurst authored Jul 22, 2022
1 parent 73b8839 commit 7b72ba4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/installation_guide/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
```

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7b72ba4

Please sign in to comment.