From 2a4cbe6ffb5ba2118468d487b1261dc49e37bd1f Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 25 Sep 2021 17:18:23 +0200 Subject: [PATCH] fuuko/matrix: Raise upload limit to 50M --- machines/fuuko/services/matrix/synapse.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/machines/fuuko/services/matrix/synapse.nix b/machines/fuuko/services/matrix/synapse.nix index 90cad6e..ff98ff4 100644 --- a/machines/fuuko/services/matrix/synapse.nix +++ b/machines/fuuko/services/matrix/synapse.nix @@ -72,6 +72,8 @@ in disable_existing_loggers = false; }; + max_upload_size = "50M"; + extraConfig = '' # I’m okay with using matrix.org as trusted key server suppress_key_server_warning: true @@ -108,6 +110,10 @@ in in { proxyPass = "http://${listenerCfg.bind_address}:${toString listenerCfg.port}"; + + extraConfig = '' + client_max_body_size ${cfg.max_upload_size}; + ''; }; };