SkateSpots/push-service/.env.example
SkateSpots 6407310213 feat(relay): cut over community relay to self-hosted Newlay
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.
2026-10-12 12:38:13 +07:00

26 lines
951 B
Text

# SkateSpots push service — copy to .env and fill in.
# Port to listen on (Caddy proxies to this).
PORT=8788
# VAPID keys for Web Push. Generate once with:
# node -e "console.log(require('web-push').generateVAPIDKeys())"
# Keep the private key secret. Changing these INVALIDATES all subscriptions.
PUSH_VAPID_SUBJECT=mailto:owner@skate-spots.org
PUSH_VAPID_PUBLIC_KEY=
PUSH_VAPID_PRIVATE_KEY=
# Relays to watch for push-marked kind-1059 wraps (comma-separated).
PUSH_RELAYS=wss://relay.skate-spots.org
# The plaintext push marker tag name on recipient wraps: ["<marker>", "push"].
PUSH_MARKER=skatespots
# Where subscriptions + challenges are stored.
PUSH_STORAGE_PATH=/home/ubuntu/skatespots-push/push-state.json
# How far back to look on each (re)subscribe, in seconds. Default 3 days.
PUSH_LOOKBACK_SECONDS=259200
# Origins allowed to call /subscribe (comma-separated).
PUSH_ALLOWED_ORIGINS=https://skate-spots.org,http://localhost:8080