- Heartbeat: re-publish discovery announcements every CVM_HEARTBEAT_MS (15 min) via the SDK's announcement manager (defensively reached), so recency-based health checks stay green for a long-running process. - LOG_LEVEL is now actually passed to the transport (was documented but unused). - find_events: from_date was a no-op (filter(() => true)); now filters by the kind-31923 start tag. - .env.example: fix CVM_RELAY (.org), drop the dead wotr relay, document CVM_HEARTBEAT_MS.
21 lines
1.2 KiB
Text
21 lines
1.2 KiB
Text
# ─────────────────────────────────────────────────────────────────────────────
|
|
# SkateSpots CVM Server — Environment Variables
|
|
# Copy this to .env and fill in your values
|
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
|
|
# Your CVM server's Nostr private key (hex format, generated by bootstrap.sh)
|
|
# NEVER commit this to git!
|
|
CVM_SERVER_NSEC_HEX=your_64_char_hex_private_key_here
|
|
|
|
# Nostr relays to query for skate data (comma-separated)
|
|
NOSTR_RELAYS=wss://goskatespots.nostr1.com,wss://relay.ditto.pub
|
|
|
|
# CVM discovery relay — where agents find your server
|
|
CVM_RELAY=wss://relay.contextvm.org
|
|
|
|
# Log level passed to the ContextVM transport: debug | info | warn | error | silent
|
|
LOG_LEVEL=info
|
|
|
|
# How often to re-publish the discovery announcements, in ms (0 disables).
|
|
# Keeps recency-based health checks green between (re)starts.
|
|
CVM_HEARTBEAT_MS=900000
|