ratelimit: switch to token-based rate limiting

allows for N actions per minute

Changelog-Changed: Switched to token-based ratelimiting
Closes: https://github.com/damus-io/noteguard/issues/2
This commit is contained in:
William Casarin 2024-07-08 14:12:38 -07:00
parent c951f0abb2
commit ddff59a20a
4 changed files with 57 additions and 27 deletions

View file

@ -2,5 +2,5 @@
pipeline = ["ratelimit"]
[filters.ratelimit]
delay_seconds = 1
whitelist = ["127.0.0.1"]
posts_per_minute = 10
whitelist = ["127.0.0.10"]