diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-09-03 10:12:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 10:12:11 +0100 |
commit | 74743ac8ae3cc439862acd15d13ba4123d745598 (patch) | |
tree | 879ff4fca4ae2025b3e57cce8ba060c0fd1b0f73 /dendrite-config.yaml | |
parent | d64d0c4be2ab33185b6dd837944dea3268b62c24 (diff) |
Rate limiting (#1385)
* Initial rate limiting
* Move rate limiting to client API
* Update rate limits to hopefully be self-cleaning
* Use X-Forwarded-For, add comments
* Reduce rate limit threshold
* Tweak interval
* Configurable backoff
* Review comments, set cleanup interval to 30 seconds
* Allow generate-config to produce sane CI config
* Fix Complement dockerfile
Diffstat (limited to 'dendrite-config.yaml')
-rw-r--r-- | dendrite-config.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dendrite-config.yaml b/dendrite-config.yaml index 23f142a8..570669c1 100644 --- a/dendrite-config.yaml +++ b/dendrite-config.yaml @@ -133,6 +133,14 @@ client_api: turn_username: "" turn_password: "" + # Settings for rate-limited endpoints. Rate limiting will kick in after the + # threshold number of "slots" have been taken by requests from a specific + # host. Each "slot" will be released after the cooloff time in milliseconds. + rate_limiting: + enabled: true + threshold: 5 + cooloff_ms: 500 + # Configuration for the Current State Server. current_state_server: internal_api: |