# PatchProbe Server — environment configuration # Copy to .env and fill in values before starting the server. # ── HTTP ───────────────────────────────────────────────────────────────────── PORT=3000 # ── Runtime ────────────────────────────────────────────────────────────────── NODE_ENV=development # ── Database ───────────────────────────────────────────────────────────────── DB_PATH=./patchprobe.db # ── Device authentication ───────────────────────────────────────────────────── PATCHPROBE_AUTH_ENABLED=true # ── Admin API key (bearer token for curl/API access) ───────────────────────── # Generate with: node server.js --gen-admin-key PATCHPROBE_ADMIN_KEY_HASH= # ── Dashboard session ───────────────────────────────────────────────────────── # Random 64-char hex string. Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" # Must be set in production or sessions will not survive server restarts. PATCHPROBE_JWT_SECRET= # ── WebAuthn passkeys ───────────────────────────────────────────────────────── # rpId: hostname only (no port, no protocol) — must match the domain serving the dashboard. # Use 'localhost' in development. PATCHPROBE_RP_ID=localhost # origin: full origin the browser uses to reach this server (protocol + host + port). # Must match exactly what appears in the browser URL bar. PATCHPROBE_ORIGIN=http://localhost:3000