Implement NIP-66 relay discovery publishing

This commit is contained in:
2026-03-18 14:50:25 +01:00
parent dc5f0c1e5d
commit f2856d000e
12 changed files with 1174 additions and 6 deletions

View File

@@ -5,6 +5,14 @@ config :postgrex, :json_library, JSON
config :parrhesia,
moderation_cache_enabled: true,
relay_url: "ws://localhost:4413/relay",
nip66: [
enabled: true,
publish_interval_seconds: 900,
publish_monitor_announcement?: true,
timeout_ms: 5_000,
checks: [:open, :read, :nip11],
targets: []
],
identity: [
path: nil,
private_key: nil

View File

@@ -27,6 +27,7 @@ config :parrhesia, :listeners,
config :parrhesia,
enable_expiration_worker: false,
moderation_cache_enabled: false,
nip66: [enabled: false],
identity: [
path: Path.join(System.tmp_dir!(), "parrhesia_test_identity.json"),
private_key: nil