From 7b72ba4ab2516c6fe72c8a507ec6b981ec997792 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 22 Jul 2022 13:36:42 +0200 Subject: [PATCH] [docs] Add client_max_body_size 40M; to nginx docs (#727) --- docs/installation_guide/nginx.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/installation_guide/nginx.md b/docs/installation_guide/nginx.md index b5e862709..799d26e19 100644 --- a/docs/installation_guide/nginx.md +++ b/docs/installation_guide/nginx.md @@ -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