# RaptorTracker — Environment Configuration # Copy this file to .env and fill in your values: # cp .env.example .env # ── Server ──────────────────────────────────────────────────── # Port the Express server listens on PORT=3000 # Random string used to sign session cookies — make this long and unique # Generate one with: node -e "console.log(require('crypto').randomBytes(48).toString('hex'))" SESSION_SECRET=changeme-replace-with-a-long-random-string # ── Admin Account ───────────────────────────────────────────── # These BOOTSTRAP the first sign-in only. Once you set a password in the app # under Settings -> Account, it is hashed into the database and the value # below is ignored entirely. # # Generate a strong one with: # node -e "console.log(require('crypto').randomBytes(18).toString('base64url'))" # # Do not ship this install with the placeholder — anything under 12 characters # is rejected when you set a real password, and the app warns on every start # until you do. ADMIN_USERNAME=admin ADMIN_PASSWORD=replace-me-before-first-start # ── Data Storage ────────────────────────────────────────────── # Directory where the SQLite database is stored DATA_DIR=./data # Directory where uploaded photos, stickers, and attachments are stored UPLOAD_DIR=./data/uploads # ── Environment ─────────────────────────────────────────────── # Use "development" locally, "production" on the server. # In production, SESSION_SECRET (above) is REQUIRED — the server refuses to # start without it rather than fall back to a public default key. NODE_ENV=development # Set to true only when the app is served over HTTPS, so the session cookie # is not sent in cleartext. Behind a plain-HTTP reverse proxy on localhost, # leave this false. COOKIE_SECURE=false # How many reverse proxies sit in front of the app. install.sh puts nginx on # localhost, so 1 is correct there. This is what makes per-IP rate limiting # see the real client instead of lumping everyone under the proxy's address. TRUST_PROXY=1 # ── Reminder schedule (optional) ────────────────────────────── # Hour of day (0-23) the daily reminder digest runs, and the timezone to # interpret it in. Default: 8am in the server's local time. REMINDER_HOUR=8 # REMINDER_TZ=America/New_York # ── Release check (optional) ────────────────────────────────── # Once a day the server asks GitHub's public API whether a newer RaptorTracker # release exists, and shows it under Settings. Set to false to never ask. # UPDATE_CHECK=false # ── Email Reminders (optional) ──────────────────────────────── # SMTP credentials for service/warranty reminder emails. Leave SMTP_HOST # blank to disable email entirely. The recipient address and on/off # toggles are set in the app under Settings → Notifications. SMTP_HOST= SMTP_PORT=587 SMTP_SECURE=false SMTP_USER= SMTP_PASS= # From address on reminder emails (defaults to SMTP_USER if blank) SMTP_FROM=