summary refs log tree commit diff
path: root/develop/usage/configuration
diff options
context:
space:
mode:
authoranoadragon453 <anoadragon453@users.noreply.github.com>2022-05-18 11:22:04 +0000
committeranoadragon453 <anoadragon453@users.noreply.github.com>2022-05-18 11:22:04 +0000
commit8f769879223c442512acac852566e309e4efb43d (patch)
tree15dc496571ec259c473b03f4a359ef0809867e82 /develop/usage/configuration
parentdeploy: 0d17357fcdded3fa3f8a37db7b6b9aa0402a10ed (diff)
downloadsynapse-8f769879223c442512acac852566e309e4efb43d.tar.xz
deploy: deca250e3f0f18ffc978f17d1f9e440fc8a4af98
Diffstat (limited to 'develop/usage/configuration')
-rw-r--r--develop/usage/configuration/config_documentation.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/develop/usage/configuration/config_documentation.html b/develop/usage/configuration/config_documentation.html

index c553f4c6ba..6327fa5e7b 100644 --- a/develop/usage/configuration/config_documentation.html +++ b/develop/usage/configuration/config_documentation.html
@@ -1265,6 +1265,17 @@ Defaults to <code>per_second: 0.003</code>, <code>burst_count: 5</code>.</p> <p>This option sets ratelimiting how often invites can be sent in a room or to a specific user. <code>per_room</code> defaults to <code>per_second: 0.3</code>, <code>burst_count: 10</code> and <code>per_user</code> defaults to <code>per_second: 0.003</code>, <code>burst_count: 5</code>. </p> +<p>Client requests that invite user(s) when <a href="https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3createroom">creating a +room</a> +will count against the <code>rc_invites.per_room</code> limit, whereas +client requests to <a href="https://spec.matrix.org/v1.2/client-server-api/#post_matrixclientv3roomsroomidinvite">invite a single user to a +room</a> +will count against both the <code>rc_invites.per_user</code> and <code>rc_invites.per_room</code> limits.</p> +<p>Federation requests to invite a user will count against the <code>rc_invites.per_user</code> +limit only, as Synapse presumes ratelimiting by room will be done by the sending server.</p> +<p>The <code>rc_invites.per_user</code> limit applies to the <em>receiver</em> of the invite, rather than the +sender, meaning that a <code>rc_invite.per_user.burst_count</code> of 5 mandates that a single user +cannot <em>receive</em> more than a burst of 5 invites at a time.</p> <p>Example configuration:</p> <pre><code class="language-yaml">rc_invites: per_room: