# ══════════════════════════════════════════════════════════════
#  FRONTEND  —  https://adminkstar.darikbet.com
#  cPanel application root: eta-frontend
#
#  Upload as  /home/darikbet/eta-frontend/.env
#  (or paste each line into Setup Node.js App → Environment variables)
#
#  This tier renders the pages. It has NO database driver installed and no
#  database password below — every read and write goes to the backend.
# ══════════════════════════════════════════════════════════════
NODE_ENV=production

# ─── Where this panel lives ────────────────────────────────────
PUBLIC_URL=https://adminkstar.darikbet.com

# ─── The backend it talks to ───────────────────────────────────
# Every page render and every action is an HTTPS call to this origin.
API_BASE_URL=https://bk.darikbet.com

# Proves to the backend that a call came from this tier. MUST be byte-for-byte
# identical to INTERNAL_API_KEY in deploy/backend.env. Anyone who has this value
# can drive the admin API directly, so treat it like a password.
INTERNAL_API_KEY=ebb81503a9a9ef879ef516bc9af07b27cf0ce50e657d5b0896620e1d7c67a0d6

# How long to wait on the backend before showing an error page.
API_TIMEOUT_MS=15000

# Apache/Passenger hops in front of the app. 1 on cPanel. This is what makes
# the browser's real IP available to forward to the backend's login throttle.
TRUST_PROXY=1

# Do NOT set PORT — Passenger assigns it.
