Skip to content

Commit 256c5d8

Browse files
ProCyclephil-flex
authored andcommitted
Add setting to nginx configuration to allow larger file uploads (matrix-org#7251)
1 parent 5856e22 commit 256c5d8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

changelog.d/7251.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Modify suggested nginx reverse proxy configuration to match Synapse's default file upload size. Contributed by @ProCycleDev.

docs/reverse_proxy.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ the reverse proxy and the homeserver.
4242
location /_matrix {
4343
proxy_pass http://localhost:8008;
4444
proxy_set_header X-Forwarded-For $remote_addr;
45+
# Nginx by default only allows file uploads up to 1M in size
46+
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
47+
client_max_body_size 10M;
4548
}
4649
}
4750

0 commit comments

Comments
 (0)