From 4ab579f50af7ad5f5a3666b08527166b2342e73d Mon Sep 17 00:00:00 2001 From: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com> Date: Sat, 16 Nov 2024 14:08:42 +0800 Subject: [PATCH] Suggest matching `max_request_size` --- docs/deploying/generic.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/deploying/generic.md b/docs/deploying/generic.md index b18ce0295..285285486 100644 --- a/docs/deploying/generic.md +++ b/docs/deploying/generic.md @@ -123,9 +123,9 @@ header, making federation non-functional. If using Apache, you need to use `nocanon` in your `ProxyPass` directive to prevent this (note that Apache isn't very good as a general reverse proxy). -Nginx users may need to increase `client_max_body_size` if there are issues with -uploading media like images. Set `proxy_request_buffering off;` and -`proxy_buffering off;` if you prefer not to buffer big files to disk. +Nginx users need to increase `client_max_body_size` (default is 1M) to match +`max_request_size` defined in conduwuit.toml. Set `proxy_request_buffering off;` +and `proxy_buffering off;` if you prefer not to buffer big files to disk. You will need to reverse proxy everything under following routes: - `/_matrix/` - core Matrix C-S and S-S APIs