readme: add forwarder to example config

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2024-07-11 15:02:28 -07:00
parent 4704b3034f
commit 399f238865

View file

@ -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. 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 ```toml
pipeline = ["protected_events", "kinds", "whitelist", "ratelimit"] pipeline = ["protected_events", "kinds", "whitelist", "ratelimit", "forwarder"]
[filters.ratelimit] [filters.ratelimit]
posts_per_minute = 8 posts_per_minute = 8
@ -32,6 +32,10 @@ kinds = [30065, 1064]
1064 = "blocked: files on nostr is dumb" 1064 = "blocked: files on nostr is dumb"
[filters.protected_events] [filters.protected_events]
[filters.forwarder]
relay = "ws://localhost:8080"
queue_size = 2000
``` ```
## Installation ## Installation