From 40e84456792c2fc9f4ed834e1ebedb4799528bdd Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Sat, 20 Jun 2020 00:20:48 +0200 Subject: [PATCH] matrix: increase file size limit --- roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 | 2 +- roles/matrix/templates/vhost.j2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 b/roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 index c3966f4..ef4c297 100644 --- a/roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 +++ b/roles/matrix/templates/matrix-synapse/homeserver.yaml.j2 @@ -811,7 +811,7 @@ media_store_path: "/var/lib/matrix-synapse/media" # The largest allowed upload size in bytes # -max_upload_size: 10M +max_upload_size: 25M # Maximum number of pixels that will be thumbnailed # diff --git a/roles/matrix/templates/vhost.j2 b/roles/matrix/templates/vhost.j2 index cc3f3ca..d5c73ef 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 10M; + client_max_body_size 25M; location / { proxy_pass http://localhost:8008; @@ -40,7 +40,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 25M; location / { proxy_pass http://localhost:8008;