Initial Commit3
This commit is contained in:
32
PatchProbe.Server/config.example.env
Normal file
32
PatchProbe.Server/config.example.env
Normal file
@@ -0,0 +1,32 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user