Point SKATE_RELAY, the default relay pools, the DM/CVM/zap relay arrays, the cvm-server + push-service defaults, and the archive default at wss://relay.skate-spots.org, keeping the legacy hosted relay as a fallback during the client-update window. Restored 115/115 archived events; the relay runs behind Caddy with TLS. Docs + AGENTS.md updated.
33 lines
1.7 KiB
Text
33 lines
1.7 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 relay(s) to query for skate data (comma-separated).
|
|
# This deployment uses only the community relay — the canonical SkateSpots data.
|
|
NOSTR_RELAYS=wss://relay.skate-spots.org
|
|
|
|
# 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
|
|
|
|
# ── Rate limiting & load protection (public, read-only endpoint) ─────────────
|
|
# Per-pubkey sliding window: max requests per window.
|
|
CVM_RATE_LIMIT=30
|
|
CVM_RATE_WINDOW_MS=300000
|
|
# Max concurrent in-flight requests per pubkey.
|
|
CVM_MAX_INFLIGHT=2
|
|
# Global cap on concurrent upstream relay queries.
|
|
CVM_MAX_UPSTREAM=8
|
|
# Short-TTL cache for identical relay queries, in ms (0 disables caching).
|
|
CVM_QUERY_CACHE_MS=30000
|