Skip to content

Commit

Permalink
Add rc_presence ratelimiting config to demo/start.sh (#18145)
Browse files Browse the repository at this point in the history
Missed in #18000
  • Loading branch information
anoadragon453 authored Feb 11, 2025
1 parent 703f2e8 commit c1815bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/18145.bugfix
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 4 additions & 0 deletions demo/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c1815bf

Please sign in to comment.