Skip to content

Environments & URLs

A reference for ports, the routes worth knowing, and the environment variables the platform reads.

Local ports

AppPathPort
Player siteapps/web3000
Adminapps/admin3001
Supportapps/support3002
API (Hono)apps/api8787
Email serviceapps/email8788
Docsapps/docs3003

Environment variables

The full list lives in .env.example. The ones that matter most for a working local stack:

  • DATABASE_URL — PostgreSQL connection string.
  • AUTH_SECRET / NEXTAUTH_SECRET — session signing.
  • NEXTAUTH_URL — usually http://localhost:3000.
  • NEXT_PUBLIC_API_URL — usually http://localhost:8787.
  • WALLET_ENCRYPTION_KEY — encryption for wallet data.

Payment and email integrations add their own keys (CRYPTOCLOUD_*, PAYOU_*, RESEND_API_KEY, EMAIL_SERVICE_API_KEY). Keep real secrets in .env and out of the repo.

API surface

The Hono API groups its routes by domain. These are the prefixes you will see most often:

PrefixArea
/user/*Profile, sessions, password, 2FA
/wallet/*Balances, deposits, withdrawals, addresses, tips, bonuses
/game/*Catalog, sessions, favorites, recently played
/platform/*Provider callbacks for bets, wins, and free rounds
/payments/*Payou fiat payments
/webhook/*CryptoCloud deposit postbacks
/vip/*VIP status, bonuses, rakeback
/support/*Player support conversations and SSE
/notifications/*In-app notification inbox

Admin actions are served by the admin app itself under /api/admin/*, each guarded by a permission. The access model explains how that guard works.