# 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: ["", "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