noteguard

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

noteguard.toml (701B)


      1 
      2 pipeline = ["protected_events", "kinds", "content", "whitelist", "ratelimit"]
      3 
      4 [filters.ratelimit]
      5 posts_per_minute = 8
      6 whitelist = ["127.0.0.1"]
      7 
      8 [filters.content]
      9 filters = ["https://cdn.nostr.build/i/some-spammy-or-abusive-image-image.png"]
     10 
     11 [filters.whitelist]
     12 pubkeys = ["16c21558762108afc34e4ff19e4ed51d9a48f79e0c34531efc423d21ab435e93"]
     13 ips = ["127.0.0.1"]
     14 
     15 [filters.kinds]
     16 kinds = [30065, 1064, 34550, 4550]
     17 
     18 [filters.kinds.messages]
     19 30065 = "blocked: files on nostr is dumb"
     20 1064 = "blocked: files on nostr is dumb"
     21 34550 = "blocked: please use a dedicated relay for moderated communities"
     22 4550 = "blocked: please use a dedicated relay for moderated communities"
     23 
     24 [filters.protected_events]