William Casarin
4d4d9d62d0
Merge pull request #17 from dsaxton/dsaxton/blacklist-cidr
...
Allow blacklisting CIDR ranges
2025-05-01 16:34:55 -07:00
Daniel Saxton
11de1ddfbb
Add blacklist docs
2025-03-08 07:30:07 -06:00
Daniel Saxton
62c2aa547b
Use custom deserialization
2025-03-07 21:47:48 -06:00
Daniel Saxton
c22f1f0a24
Allow blacklisting CIDR ranges
2025-01-04 19:40:14 -06:00
William Casarin
e6566e65f9
Merge remote-tracking branch 'dsaxton/blacklist'
2025-01-04 11:40:18 -08:00
William Casarin
2184378f0d
readme: fix docs on delayed testing
2024-11-18 11:07:33 -08:00
William Casarin
db9ef05d85
readme: document new rate-limit message option
2024-11-18 11:07:15 -08:00
William Casarin
778c5a053b
ratelimit: reduce the number of string allocations
...
not a huge deal, but this is technically a bit nicer
2024-11-18 11:02:52 -08:00
Daniel Saxton
77c2a8906c
ratelimit: make message configurable
...
Changelog-Added: Make ratelimit message configurable
Closes: https://github.com/damus-io/noteguard/pull/15
2024-11-18 11:02:20 -08:00
Daniel Saxton
3b73e9aa00
make: add linux build
2024-11-18 11:01:04 -08:00
William Casarin
4d4c9981ef
forwarder: run cargo fmt
2024-11-18 11:01:04 -08:00
Daniel Saxton
690e2b0a47
Add blacklist filter
2024-09-23 22:20:51 -05:00
William Casarin
5ec7642342
Merge forwarder TLS support and content filter
...
Daniel D’Aquino (1):
Add TLS support for the forwarder
William Casarin (2):
filter: add content filter
2024-08-25 11:09:53 +03:00
Daniel D’Aquino
0c21ea0f03
Add TLS support for the forwarder
...
This commit configures noteguard and dependencies to be built with TLS
support, to allow it to forward notes to TLS-enabled relays.
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Closes: https://github.com/damus-io/noteguard/issues/13
2024-08-23 15:34:51 -07:00
William Casarin
cae0393ed0
filter: add content filter
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-30 10:52:41 -07:00
William Casarin
8e1bb0363f
test: add chatgpt generated tests
...
because I'm lazy
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-19 11:13:24 -07:00
William Casarin
471a70bbfa
simplify main loop
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-19 11:13:02 -07:00
William Casarin
399f238865
readme: add forwarder to example config
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-11 15:02:36 -07:00
William Casarin
4704b3034f
mention queue size default
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-11 14:57:16 -07:00
William Casarin
670b390096
readme: make note that forwarder is compile flag
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-11 14:56:46 -07:00
William Casarin
15e53a116a
filter: add forwarder filter
...
Fixes: https://github.com/damus-io/noteguard/issues/10
Changelog-Added: Add forwarder filter
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-11 14:50:36 -07:00
William Casarin
794468d98a
add forwarder deps
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-11 14:44:41 -07:00
William Casarin
d7d62d343b
improve instructions
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-11 09:22:03 -07:00
William Casarin
9af92bfca3
install instructions
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-11 09:11:18 -07:00
William Casarin
c85f9cbc3d
filter: add kind blacklist filter
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 11:05:21 -07:00
William Casarin
f08e805673
filters/protected_events: fix clippy
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 11:05:01 -07:00
William Casarin
39d70fd179
readme: update test instructions, add static build instructions
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 10:35:02 -07:00
William Casarin
e28454ac32
filter: add protected_events filter
...
This adds support for protected events
Link: https://github.com/nostr-protocol/nips/pull/1030
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 10:14:58 -07:00
William Casarin
20a8773631
ratelimit: rename module to match filter name
...
less confusion
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 10:04:26 -07:00
William Casarin
4b5f67d473
readme: add optional indicator to filter docs
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 09:55:41 -07:00
William Casarin
784d32e327
readme: show pubkey config
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 09:55:07 -07:00
William Casarin
051be41c53
readme: fix filter header
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 09:54:22 -07:00
William Casarin
74c90453b8
filter: add whitelist filter
...
Fixes: https://github.com/damus-io/noteguard/issues/3
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 09:53:36 -07:00
William Casarin
bae87107ae
actually use pipeline config
...
Fixes: https://github.com/damus-io/noteguard/issues/4
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-09 09:48:24 -07:00
William Casarin
e1fe57ea87
a few tweaks
2024-07-08 14:39:32 -07:00
William Casarin
ddff59a20a
ratelimit: switch to token-based rate limiting
...
allows for N actions per minute
Changelog-Changed: Switched to token-based ratelimiting
Closes: https://github.com/damus-io/noteguard/issues/2
2024-07-08 14:26:06 -07:00
William Casarin
c951f0abb2
ratelimit: clarify delay second option
2024-07-07 22:40:29 -05:00
William Casarin
98671c5aa8
section on testing
2024-07-07 22:36:47 -05:00
William Casarin
7387bcdf14
update readme
2024-07-07 22:33:52 -05:00
William Casarin
24a1c0dfc2
initial commit
2024-07-07 22:29:29 -05:00