38 lines
1.6 KiB
Bash
38 lines
1.6 KiB
Bash
# Admin panel bootstrap (server only). Used once to create the admin account
|
|
# in data/admin-accounts.json. After bootstrap, change the password in Settings.
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=change-me-to-a-strong-password
|
|
|
|
# Optional: HMAC secret for signed session cookies. Defaults to a value derived
|
|
# from ADMIN_PASSWORD when unset.
|
|
# ADMIN_SESSION_SECRET=
|
|
|
|
# Optional: absolute path for the accounts JSON file (default: <cwd>/data/admin-accounts.json)
|
|
# ADMIN_ACCOUNTS_PATH=
|
|
|
|
# Optional: absolute path for the panel audit log (default: <cwd>/data/admin-audit.jsonl)
|
|
# ADMIN_AUDIT_LOG_PATH=
|
|
|
|
# Optional: public site URL when reverse proxy does not send X-Forwarded-* (fixes post-login redirects).
|
|
# Example: https://kickkings.playpoolstudios.com
|
|
# APP_ORIGIN=
|
|
|
|
# Supabase project URL (public)
|
|
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
|
|
|
|
# Service role key — server only; never expose to the browser. Used to read
|
|
# users/matches for this admin UI (bypasses RLS). Get it from Supabase Dashboard → Settings → API.
|
|
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
|
|
|
|
# Directory containing per-match logs as <matchId>.txt (server filesystem path).
|
|
# Example: /home/react/KickKings/games/soccar/soccar_Data/Logs
|
|
# MATCH_LOGS_DIR=
|
|
|
|
# Directory containing matchmaker logs: history.log (processed) and matchmaker.log (raw).
|
|
# Example: /var/www/html/kickkings/logs/matchmaker/logs
|
|
# MATCHMAKER_LOGS_DIR=
|
|
|
|
# Third-party IP geolocation provider (ipgeolocation.io)
|
|
# Used for country code lookup from user IP and ping report IP.
|
|
IPGEOLOCATION_API_KEY=your-ipgeolocation-api-key
|