Mike Dilger
adc9e81068
config: minimum_ban_seconds, timeout_seconds
2024-04-17 08:20:37 +12:00
Mike Dilger
27a63495e5
Setting to disable IP blocking
2024-04-12 14:00:37 +12:00
Mike Dilger
20d35d2137
Update supported NIPs (nip-28 has no requirements on relays)
2024-04-10 10:02:08 +12:00
Mike Dilger
d4c5459f23
Capture and log the Origin header (like the User-Agent header)
2024-04-10 08:51:10 +12:00
Mike Dilger
7883d75446
Version 1.3.0
2024-04-10 08:21:58 +12:00
Mike Dilger
dbca0ddb4e
Support NIP-40 Expiration timestamp
2024-04-10 08:20:37 +12:00
Mike Dilger
71f163a6c2
Update NIP-11 supported nips
2024-04-10 08:07:59 +12:00
Mike Dilger
82016f4954
chorus_compress
2024-04-09 18:59:03 +12:00
Mike Dilger
77caad1a7d
Log hostname at startup
2024-04-09 18:19:22 +12:00
Mike Dilger
b7da4b1a28
Simplify get_event_by_offset() output, avoid a panic
2024-04-09 08:57:53 +12:00
Mike Dilger
dd8e345e86
moderate: show kind
2024-04-09 07:39:01 +12:00
Mike Dilger
c420335188
fix compile error
2024-04-09 07:38:21 +12:00
Mike Dilger
43d7efbbda
Dong log message if error was AuthRequired
2024-04-08 06:41:48 +12:00
Mike Dilger
8dda490bf2
print stats on HUP
2024-04-05 15:35:49 +13:00
Mike Dilger
808d593258
Fix log target
2024-04-05 15:32:00 +13:00
Mike Dilger
5ee9dee6f1
Count runtime and inbound/outbound traffic bytes
2024-04-05 15:26:41 +13:00
Mike Dilger
5daff6fac5
Add services to chorus relay
2024-04-03 07:40:25 +13:00
Mike Dilger
5bde8aa400
moderate: delete further events by banned pubkeys
2024-03-29 10:47:20 +13:00
Mike Dilger
c96a9a83b1
fix chorus_moderate input
2024-03-28 08:44:10 +13:00
Mike Dilger
f5043cf50d
dump approvals functions and binary
2024-03-22 09:51:48 +13:00
Mike Dilger
46ffc8cec5
chorus_moderate: command line tool to approve or ban users and events
2024-03-22 09:10:59 +13:00
Mike Dilger
15bb8c23c1
Deal with event/pubkey approvals in event screens (in and out)
2024-03-22 09:10:59 +13:00
Mike Dilger
a701e148dc
Version 1.2.0
2024-03-22 06:51:22 +13:00
Mike Dilger
c8b365f264
rename dump to chorus_dump
2024-03-22 06:50:13 +13:00
Mike Dilger
585dda0cb8
Do not log IP addresses -- hash IP addresses with SHA256:
...
We need to match repeat requests as being from the same IP address so we can keep
IP address reputations. If someone has a suspect IP address, they can hash it and
then find it in our logs, so this is not perfect protection. But if they are
trying to get IP addresses they won't find any.
2024-03-17 14:13:04 +13:00
Mike Dilger
b80f14d56b
Use parking lot RwLock, move away from async RwLock, honor config changes to allow_scraping
2024-03-16 14:44:42 +13:00
Mike Dilger
6a65c116ca
Fix recent bug
2024-03-16 13:28:30 +13:00
Mike Dilger
54bb5450f6
Reload config on HUP signal; change and synchronize default config
2024-03-16 12:57:53 +13:00
Mike Dilger
f6c8d214a4
config.open_relay optionally run as an open public relay
2024-03-12 10:52:44 +13:00
Mike Dilger
437782e770
Two new config variables for allowing short scrapes
2024-03-05 08:27:42 +13:00
Mike Dilger
fda607a6a6
Version 1.1.1
2024-03-02 13:12:26 +13:00
Mike Dilger
014a0ff7fe
cargo clippy
2024-03-02 13:10:41 +13:00
Mike Dilger
814d95899b
Don't penalize I/O errors
2024-02-22 12:05:38 +13:00
Mike Dilger
59643c1b06
IpData rework (persists a restart)
2024-02-22 11:54:16 +13:00
Mike Dilger
1e2187b86c
Protected Event: NIP-70 support
2024-02-21 18:51:13 +13:00
Mike Dilger
5ab2098244
Log level filter work
2024-02-21 14:31:26 +13:00
Mike Dilger
343e352f44
Trim dependencies
2024-02-21 13:19:14 +13:00
Mike Dilger
ec315d9841
Version 1.1.0
...
Breaking change in config format which is now TOML
2024-02-21 12:49:39 +13:00
Mike Dilger
4ebe2545ac
Version 1.0.7
2024-02-21 12:38:40 +13:00
Mike Dilger
c098195a1c
[BREAKING] Switch to TOML config format
2024-02-21 12:35:02 +13:00
Mike Dilger
a26e69248c
dump binary, dumps all events as JSON, one per line
2024-02-21 12:23:12 +13:00
Mike Dilger
d7f8ed3f60
Split into bin and lib, so we can have extra binaries that use the lib
2024-02-21 12:10:10 +13:00