CampgroundTickets/.env.example
Hank b36d63a6a4 Add check-in audit logging + in-app history view
Every successful check-in/undo writes a row to the "2026 Ticket Audit Logs"
NocoDB table (timestamp, people, code, action, name, remaining-after).
Non-fatal: audit failures never block a gate check-in. New GET /api/audit
endpoint (global or per-code). Admin panel gains a global "Recent check-ins"
panel and per-ticket history. Audit table is optional via NOCODB_AUDIT_TABLE_ID.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 03:53:30 +00:00

30 lines
940 B
Text

# Copy to .env and fill in. NEVER commit .env.
# HTTP port the container listens on (nginx proxies scan.beartariacampgrounds.com -> 127.0.0.1:8080)
PORT=8080
# Existing NocoDB instance
NOCODB_BASE_URL=https://nocodb.beartariacampgrounds.com
# API token (xc-token) created in NocoDB: Account Settings -> Tokens
NOCODB_API_TOKEN=
# Table ID of "2026 Campground Tickets" (right-click table -> Copy Table ID, looks like m1a2b3c4d5e6f7)
NOCODB_TABLE_ID=
# Optional: table ID of "2026 Ticket Audit Logs". If unset, audit logging is skipped.
NOCODB_AUDIT_TABLE_ID=
# MailerSend
MAILERSEND_API_TOKEN=
MAIL_FROM_EMAIL=tickets@beartariacampgrounds.com
MAIL_FROM_NAME=Beartaria Campgrounds
# Shared secret FluentForms sends in the X-Webhook-Secret header (long random string)
WEBHOOK_SECRET=
# Gate staff PIN for the scanner app
EVENT_PIN=
# JWT signing secret (long random string) and token lifetime
TOKEN_SECRET=
TOKEN_TTL=30d
LOG_LEVEL=info