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:
parent
c951f0abb2
commit
ddff59a20a
4 changed files with 57 additions and 27 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue