From 088ee7c6bfa8b29221596e0ffb87e1172ccf1d06 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Thu, 9 Apr 2020 21:38:29 +0200 Subject: [PATCH] matrix: increase max size to 10M --- roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 | 2 +- roles/matrix/templates/vhost.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 b/roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 index 0bce7ef..b0fe2fe 100644 --- a/roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 +++ b/roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 @@ -701,7 +701,7 @@ media_store_path: "/var/lib/matrix-synapse/media" # The largest allowed upload size in bytes # -max_upload_size: 5M +max_upload_size: 10M # Maximum number of pixels that will be thumbnailed # diff --git a/roles/matrix/templates/vhost.j2 b/roles/matrix/templates/vhost.j2 index 14037d4..cc3f3ca 100644 --- a/roles/matrix/templates/vhost.j2 +++ b/roles/matrix/templates/vhost.j2 @@ -23,7 +23,7 @@ server { ssl_certificate_key /etc/nginx/ssl/{{ matrix_domain }}.key; ssl_certificate /etc/nginx/ssl/{{ matrix_domain }}.crt; - client_max_body_size 5M; + client_max_body_size 10M; location / { proxy_pass http://localhost:8008;