Add rc_presence ratelimiting config to demo/start.sh (#18145)

Missed in https://github.com/element-hq/synapse/pull/18000
This commit is contained in:
Andrew Morgan
2025-02-11 14:39:12 +07:00
committed by GitHub
parent 703f2e8c43
commit c1815bf5a1
2 changed files with 5 additions and 0 deletions

1
changelog.d/18145.bugfix Normal file
View File

@@ -0,0 +1 @@
Add rate limit `rc_presence.per_user`. This prevents load from excessive presence updates sent by clients via sync api. Also rate limit `/_matrix/client/v3/presence` as per the spec. Contributed by @rda0.

View File

@@ -138,6 +138,10 @@ for port in 8080 8081 8082; do
per_user: per_user:
per_second: 1000 per_second: 1000
burst_count: 1000 burst_count: 1000
rc_presence:
per_user:
per_second: 1000
burst_count: 1000
RC RC
) )
echo "${ratelimiting}" >> "$port.config" echo "${ratelimiting}" >> "$port.config"