From e0c287483414603638b55692cb04a6ff590559e9 Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Sat, 3 Apr 2021 19:21:54 -0400 Subject: [PATCH] Document need for max-body-size change in reverse proxy as well Just changing the Media API's `max_file_size_bytes` isn't enough if Dendrite is running behind a proxy; document the need for a proxy config change in the place the admin is most likely to notice it. Signed-off-by: Tim McCormack --- dendrite-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dendrite-config.yaml b/dendrite-config.yaml index 13564590d..cf80cdc7c 100644 --- a/dendrite-config.yaml +++ b/dendrite-config.yaml @@ -248,7 +248,8 @@ media_api: base_path: ./media_store # The maximum allowed file size (in bytes) for media uploads to this homeserver - # (0 = unlimited). + # (0 = unlimited). If using a reverse proxy, ensure it allows requests at + # least this large (e.g. client_max_body_size in nginx.) max_file_size_bytes: 10485760 # Whether to dynamically generate thumbnails if needed.