jb55 on Nostr: Just added a bunch of new filters for noteguard[1]. Here’s a noteguard config with ...
Just added a bunch of new filters for noteguard[1]. Here’s a noteguard config with all of the latest filters. It’s super easy to configure. What other filters should we add?
```
pipeline = ["protected_events", "kinds", "whitelist", "ratelimit"]
[filters.ratelimit]
posts_per_minute = 6
whitelist = ["127.0.0.1"]
[filters.whitelist]
pubkeys = ["16c21558762108afc34e4ff19e4ed51d9a48f79e0c34531efc423d21ab435e93"]
ips = ["127.0.0.1"]
[filters.kinds]
kinds = [30065, 1064]
[filters.kinds.messages]
30065 = "blocked: files on nostr is dumb"
1064 = "blocked: files on nostr is dumb"
[filters.protected_events]
```
[1]
https://github.com/damus-io/noteguardPublished at
2024-07-09 18:15:49Event JSON
{
"id": "d02f36ad7ab0d028d5b62859f675c7445b9f777daa5618d554ffd5a53f814007",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1720548949,
"kind": 1,
"tags": [
[
"r",
"https://github.com/damus-io/noteguard"
]
],
"content": "Just added a bunch of new filters for noteguard[1]. Here’s a noteguard config with all of the latest filters. It’s super easy to configure. What other filters should we add?\n\n```\npipeline = [\"protected_events\", \"kinds\", \"whitelist\", \"ratelimit\"]\n\n[filters.ratelimit]\nposts_per_minute = 6\nwhitelist = [\"127.0.0.1\"]\n\n[filters.whitelist]\npubkeys = [\"16c21558762108afc34e4ff19e4ed51d9a48f79e0c34531efc423d21ab435e93\"]\nips = [\"127.0.0.1\"]\n\n[filters.kinds]\nkinds = [30065, 1064]\n\n[filters.kinds.messages]\n30065 = \"blocked: files on nostr is dumb\"\n1064 = \"blocked: files on nostr is dumb\"\n\n[filters.protected_events]\n```\n\n[1] https://github.com/damus-io/noteguard",
"sig": "febe92892d734401b5b323472e1dbaa82b00ad8778a7152a812dbe14684d9e15ea6b1e64fb92e327114fa9d42d7a65a7e7cfb2401007a47c71e3fbf168b27644"
}