filter: add whitelist filter

Fixes: https://github.com/damus-io/noteguard/issues/3
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2024-07-09 09:44:31 -07:00
parent bae87107ae
commit 74c90453b8
5 changed files with 51 additions and 16 deletions

View file

@ -1,6 +1,10 @@
pipeline = ["ratelimit"]
pipeline = ["whitelist", "ratelimit"]
[filters.ratelimit]
posts_per_minute = 8
whitelist = ["127.0.0.1"]
[filters.whitelist]
pubkeys = ["16c21558762108afc34e4ff19e4ed51d9a48f79e0c34531efc423d21ab435e93"]
ips = ["127.0.0.1"]