From 2ca09ea5492f11d71e1790c16f15bf6dcf3a0b44 Mon Sep 17 00:00:00 2001 From: Qubasa Date: Tue, 2 Jul 2024 13:42:59 +0200 Subject: [PATCH] matrix: Increase login threshold for bots --- modules/web01/matrix-synapse.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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; + }; + }; + }; }