readme: add forwarder to example config
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user