-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
34 lines (30 loc) · 1.71 KB
/
Copy path.env.example
File metadata and controls
34 lines (30 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
MONGODB_URI=mongodb://localhost:27017
MONGO_DB=nostr
# Collection names default to the live nostr-beacon values (for regression)
MONGO_COLLECTION=beacon
MONGO_FOLLOWS_COLLECTION=follows
MONGO_RELAYS_COLLECTION=relay_lists
# firehose relay-health directory (one doc per relay URL)
MONGO_RELAY_DIRECTORY_COLLECTION=relays
RELAYS=wss://relay.damus.io,wss://nos.lol,wss://relay.primal.net
PORT=3000
# Firehose switch: which hoses run (comma list of names; default: all).
# e.g. HOSES=profiles to run only the profiles hose during a phased rollout.
# HOSES=profiles
# Legacy raw-upsert path for kinds not yet migrated to a hose (3=follows,
# 10002=relay lists). On by default; set to 0 to run a single hose without
# writing collections still owned by the legacy firehose processes.
# INDEX_LEGACY_KINDS=1
# Relay-health prober (node probe.js / npm run probe). Dials ONLY a curated
# allowlist (never the harvested directory) and writes online/uptime/latency +
# NIP-11 auth/payment flags. Expand the allowlist deliberately.
# Targets = this allowlist PLUS already-verified relays (online >=1x), capped.
# PROBE_RELAYS=wss://relay.damus.io,wss://nos.lol # allowlist seed (default: small built-in set)
# PROBE_INTERVAL=86400000 # sweep cadence in ms (default 86400000 = daily)
# PROBE_CONCURRENCY=25 # relays probed in parallel
# PROBE_TIMEOUT=7000 # per-relay connect/HTTP timeout in ms
# PROBE_MAX=1000 # cap relays dialed per sweep
# PROBE_PRIVKEY=<64-hex> # THROWAWAY key (not your identity) — enables the
# # ephemeral write-test (acceptsEvents + reason).
# # Write-test is OFF unless this is set.
# RUN_ONCE=1 # single sweep then exit (or pass --once)