CampgroundTickets/.env.example
Hank b7c77afe02 Rework webhook + model for the 2026 Tickets form
New form schema: up to 10 named adults, youth 13-16, kids 10-12 / 5-9 / 0-4,
donor tier/vouchers (from the lookups), parking/RV/UTV/ice payment fields.
- Scannable total = adults + youth + kids 10-12 + kids 5-9 (kids 0-4 free).
- Store + display adult names on a good scan; show donor tier, UTV, vouchers.
- Ice: payment_ice = 1-4 tickets ($20 each), 1 ticket = 3 bags.
- New NocoDB 2026 schema (with Id PK); webhook parses compound names,
  quantity/payment fields (nested objects or money strings).
- Our webhook keeps sending the QR ticket email (FluentForms sends the receipt);
  from address is now info@beartariacampgrounds.com.
Updated /test personas, /webhook-doc, tests, and the app display.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 03:23:06 +00:00

51 lines
1.8 KiB
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=
# Banquet mode — donor tables (optional; if the master list is unset, banquet is disabled)
NOCODB_DONORS_TABLE_ID=
NOCODB_DONOR_ONLINE_TABLE_ID=
NOCODB_DONOR_OFFLINE_TABLE_ID=
# Ice: form sells 1-4 ice tickets at $20 each; one ticket = 3 bags. The webhook
# reads payment_ice as a ticket count (1-4) or a dollar total ($20-$80).
ICE_TICKET_PRICE=20
ICE_BAGS_PER_TICKET=3
# Ticket-voucher entitlement (donor free tickets). Donations on/after
# VOUCHER_SINCE totalling >= TIER1 earn 1 voucher, >= TIER2 earn 2. Bump the
# date each year. NOTE: with no donations after the cutoff, everyone gets 0.
VOUCHER_SINCE=2025-09-04
VOUCHER_TIER1_MIN=400
VOUCHER_TIER2_MIN=1000
# Serve /test with sample QR codes (seeds test personas into the CURRENT table).
# Keep this false/empty in production — only enable when pointed at a TEST table.
ENABLE_TEST_PAGE=false
# MailerSend
MAILERSEND_API_TOKEN=
MAIL_FROM_EMAIL=info@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