noteguard

the nostr relay spam guardian
git clone git://jb55.com/noteguard
Log | Files | Refs | README | LICENSE

commit 399f238865e4a1cba1527127bbbdfeeecd92ba64
parent 4704b3034f074ecda5d3091c47fe9600b01fac16
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 11 Jul 2024 15:02:28 -0700

readme: add forwarder to example config

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
MREADME.md | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -14,7 +14,7 @@ You can add any new filter you want by implementing the `NoteFilter` trait and r The `pipeline` config specifies the order in which filters are run. When the first `reject` or `shadowReject` action is hit, then the pipeline stops and returns the rejection error. ```toml -pipeline = ["protected_events", "kinds", "whitelist", "ratelimit"] +pipeline = ["protected_events", "kinds", "whitelist", "ratelimit", "forwarder"] [filters.ratelimit] posts_per_minute = 8 @@ -32,6 +32,10 @@ kinds = [30065, 1064] 1064 = "blocked: files on nostr is dumb" [filters.protected_events] + +[filters.forwarder] +relay = "ws://localhost:8080" +queue_size = 2000 ``` ## Installation