1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-05 15:37:02 +00:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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_second: 1000
burst_count: 1000
rc_presence:
per_user:
per_second: 1000
burst_count: 1000
RC
)
echo "${ratelimiting}" >> "$port.config"