summary refs log tree commit diff
path: root/host/Rory-nginx/services/matrix/synapse/ratelimits.nix
blob: 4f6b7dbe92506bfd5a3894739b9ec967910a876d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  rc_message = {
    per_second = 1000;
    burst_count = 1000;
  };
  rc_login = {
    address = {
      per_second = 1000;
      burst_count = 1000;
    };
    account = {
      per_second = 1000;
      burst_count = 1000;
    };
    failed_attempts = {
      per_second = 0.1;
      burst_count = 3;
    };
  };
  rc_joins = {
    local = {
      per_second = 1000;
      burst_count = 1000;
    };
    remote = {
      per_second = 1000;
      burst_count = 1000;
    };
  };
  rc_joins_per_room = {
    per_second = 1000;
    burst_count = 1000;
  };
  rc_invites = {
    per_room = {
      per_second = 1000;
      burst_count = 1000;
    };
    per_user = {
      per_second = 1000;
      burst_count = 1000;
    };
    per_issuer = {
      per_second = 1000;
      burst_count = 1000;
    };
  };
  rc_federation = {
    window_size = 10;
    sleep_limit = 1000;
    sleep_delay = 100;
    reject_limit = 1000;
    concurrent = 100;
  };
  federation_rr_transactions_per_room_per_second = 1;
}