Files
lisilou-portfolio/api/.env.example
T
jhodgkin 643e5afdc8
Deploy to Dev / Deploy & Smoke Test (push) Successful in 24s
Add admin dashboard (issue #11) + admin API routes
- New src/dashboard.html: vanilla JS SPA with login (bearer token),
  Overview stats, Calendar month view with color-coded dots,
  Bookings table with expandable payment block and confirm action,
  Payments panel with revenue summary and CSV export
- api/server.js: admin routes behind requireAdmin middleware:
  GET /api/admin/stats, GET /api/admin/bookings, PATCH /api/admin/bookings/:id,
  GET /api/admin/payments/export; PATCH fires payment_confirmed n8n event
- nginx.conf: /dashboard location serves dashboard.html
- api/.env.example: add ADMIN_SECRET placeholder

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-08 22:17:26 -06:00

27 lines
560 B
Bash

PORT=3001
CORS_ORIGIN=http://localhost:8080
# Admin dashboard auth (issue #11) — set to a strong random passphrase
ADMIN_SECRET=
# n8n webhook for email notifications
N8N_WEBHOOK_URL=
PHOTOGRAPHER_EMAIL=hello@lisilou.com
SITE_URL=http://192.168.1.192:8080
# Google Calendar (issue #3)
GOOGLE_CALENDAR_ID=
GOOGLE_SERVICE_ACCOUNT_JSON=
# Contract PDF signature placement (issue #6)
CONTRACT_SIG_X=100
CONTRACT_SIG_Y=700
CONTRACT_SIG_PAGE=1
# OIDC / Authentik (issue #10)
SESSION_SECRET=
OIDC_ISSUER=
OIDC_CLIENT_ID=
OIDC_CLIENT_SECRET=
OIDC_REDIRECT_URI=