diff --git a/modules/web01/matrix-synapse.nix b/modules/web01/matrix-synapse.nix index 01fa466..9297864 100644 --- a/modules/web01/matrix-synapse.nix +++ b/modules/web01/matrix-synapse.nix @@ -8,4 +8,23 @@ }; clan.matrix-synapse.users.monitoring = { }; clan.matrix-synapse.users.clan-bot = { }; + + # Rate limiting settings + # we need to up this to be able to support matrix bots + services.matrix-synapse.settings = { + rc_login = { + address = { + per_second = 20; + burst_count = 200; + }; + account = { + per_second = 20; + burst_count = 200; + }; + failed_attempts = { + per_second = 3; + burst_count = 15; + }; + }; + }; }