gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7b72ba4ab2516c6fe72c8a507ec6b981ec997792
parent 73b8839c5d1b481d1aa1330cd8c206a9f2213333
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date:   Fri, 22 Jul 2022 13:36:42 +0200

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


Diffstat:
Mdocs/installation_guide/nginx.md | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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