Files
hihala-dashboard/server/.env.example
fahed 8cf6f9eedd
All checks were successful
Deploy HiHala Dashboard / deploy (push) Successful in 6s
feat: add PIN-based login with server-side cookie sessions
- Server: POST /auth/login (verify PIN, set httpOnly cookie)
- Server: GET /auth/check, POST /auth/logout
- Client: Login page shown when not authenticated
- Session persists 7 days via httpOnly cookie
- PIN stored server-side only (ADMIN_PIN env var)
- Dashboard loads data only after successful auth

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 22:02:34 +03:00

21 lines
447 B
Plaintext

# Server
SERVER_PORT=3002
# Hono ERP API (museum sales data)
ERP_API_URL=https://hono-erp.azurewebsites.net
ERP_API_CODE=your-api-function-key
ERP_USERNAME=your-username
ERP_PASSWORD=your-password
# NocoDB (for ETL writes)
NOCODB_URL=http://localhost:8090
NOCODB_TOKEN=your-token
NOCODB_BASE_ID=your-base-id
# ETL sync secret (for cron auth)
ETL_SECRET=your-secret-here
# Auth
ADMIN_PIN=your-pin-code
SESSION_SECRET=your-random-session-secret