From 37a83a9171fefd1288a618bf255005eaaa094d02 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 19 Oct 2023 19:24:46 +0200 Subject: [PATCH] Reduce maximum upload size to 25MB, make it consistent --- .../roles/docker-compose/files/synapse/config/homeserver.yaml | 2 +- ansible/roles/docker-compose/files/synapse/nginx/synapse.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/docker-compose/files/synapse/config/homeserver.yaml b/ansible/roles/docker-compose/files/synapse/config/homeserver.yaml index 495d241..3bf3d8a 100755 --- a/ansible/roles/docker-compose/files/synapse/config/homeserver.yaml +++ b/ansible/roles/docker-compose/files/synapse/config/homeserver.yaml @@ -958,7 +958,7 @@ media_store_path: "/data/media" # The largest allowed upload size in bytes # -max_upload_size: 500M +max_upload_size: 25M # Maximum number of pixels that will be thumbnailed # diff --git a/ansible/roles/docker-compose/files/synapse/nginx/synapse.conf b/ansible/roles/docker-compose/files/synapse/nginx/synapse.conf index ac3376c..986abc4 100644 --- a/ansible/roles/docker-compose/files/synapse/nginx/synapse.conf +++ b/ansible/roles/docker-compose/files/synapse/nginx/synapse.conf @@ -6,7 +6,7 @@ server { ssl_certificate /ssl/chain.crt; ssl_certificate_key /ssl/certificate.keyplain; - client_max_body_size 100m; + client_max_body_size 25m; error_page 403 404 /403_404.html; location = /403_404.html {