From 399f238865e4a1cba1527127bbbdfeeecd92ba64 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 11 Jul 2024 15:02:28 -0700 Subject: [PATCH] readme: add forwarder to example config Signed-off-by: William Casarin --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cb38684..7df00b7 100644 --- 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