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}; + ''; }; };