summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Raimist <aaron@raim.ist>2021-06-10 05:40:24 -0500
committerGitHub <noreply@github.com>2021-06-10 11:40:24 +0100
commite6245e6d48bcb0a1d426b73d010988e0f2d92b35 (patch)
tree52a1069571d52e1a2e7d501f8f18bb2623f0cce6
parentUpdate Complement run with Synapse-supported MSC-related build tags (#10155) (diff)
downloadsynapse-e6245e6d48bcb0a1d426b73d010988e0f2d92b35.tar.xz
Mention that you need to configure max upload size in reverse proxy as well (#10122)
Signed-off-by: Aaron Raimist <aaron@raim.ist>
-rw-r--r--changelog.d/10122.doc1
-rw-r--r--docs/sample_config.yaml4
-rw-r--r--synapse/config/repository.py4
3 files changed, 9 insertions, 0 deletions
diff --git a/changelog.d/10122.doc b/changelog.d/10122.doc
new file mode 100644
index 0000000000..07a0d2520d
--- /dev/null
+++ b/changelog.d/10122.doc
@@ -0,0 +1 @@
+Mention in the sample homeserver config that you may need to configure max upload size in your reverse proxy. Contributed by @aaronraimist.
diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml
index 7b97f73a29..f8925a5e24 100644
--- a/docs/sample_config.yaml
+++ b/docs/sample_config.yaml
@@ -954,6 +954,10 @@ media_store_path: "DATADIR/media_store"
 
 # The largest allowed upload size in bytes
 #
+# If you are using a reverse proxy you may also need to set this value in
+# your reverse proxy's config. Notably Nginx has a small max body size by default.
+# See https://matrix-org.github.io/synapse/develop/reverse_proxy.html.
+#
 #max_upload_size: 50M
 
 # Maximum number of pixels that will be thumbnailed
diff --git a/synapse/config/repository.py b/synapse/config/repository.py
index c78a83abe1..2f77d6703d 100644
--- a/synapse/config/repository.py
+++ b/synapse/config/repository.py
@@ -248,6 +248,10 @@ class ContentRepositoryConfig(Config):
 
         # The largest allowed upload size in bytes
         #
+        # If you are using a reverse proxy you may also need to set this value in
+        # your reverse proxy's config. Notably Nginx has a small max body size by default.
+        # See https://matrix-org.github.io/synapse/develop/reverse_proxy.html.
+        #
         #max_upload_size: 50M
 
         # Maximum number of pixels that will be thumbnailed