# ADbotix — environment configuration.
# Copy to `.env` (kept OUT of version control) and fill in for production, OR set
# these as real environment variables (Apache SetEnv / nginx fastcgi_param /
# systemd Environment= / container env). Values already set in the environment
# always win over this file. With no .env, the app runs in dev defaults.

# ── Runtime ─────────────────────────────────────────────────────────────────
YII_ENV=dev
YII_DEBUG=1

# ── Database ────────────────────────────────────────────────────────────────
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=adbotix
DB_USER=root
DB_PASSWORD=

# ── Cookie validation keys (generate unique 32-char random strings) ──────────
# e.g. php -r 'echo bin2hex(random_bytes(16));'
COOKIE_VALIDATION_KEY_FRONTEND=change-me-frontend-32-chars
COOKIE_VALIDATION_KEY_BACKEND=change-me-backend-32-chars

# ── Mail (real SMTP). Unset → mail is written to runtime/mail. ───────────────
# Admin → Settings → SMTP can also override this per-send at runtime.
MAILER_DSN=smtp://user:pass@smtp.example.com:587

# ── Public site base URL (for absolute verification links in cron/console) ───
FRONTEND_URL=https://adbotix.example.com

# ── Live deposit detection (M14) — chain watcher infra ───────────────────────
# Override the admin settings; secrets/endpoints belong here, never in VCS. The
# explorer must be BscScan-compatible (account/tokentx). USDT_CONTRACT defaults to
# canonical BSC USDT if unset. Confirmations/tolerance/window are admin-tunable.
BSC_RPC_URL=https://bsc-dataseed.binance.org
BSC_EXPLORER_API_URL=https://api.bscscan.com/api
BSCSCAN_API_KEY=your-bscscan-api-key
USDT_CONTRACT=0x55d398326f99059fF775485246999027B3197955

# ── Wallet connect (M13) — WalletConnect v2 / Reown project_id ───────────────
# PUBLIC client id, free from https://dashboard.reown.com. Enables the panel
# wallet connector (MetaMask + Trust, desktop + mobile QR/deep-link). Overrides
# the admin `walletconnect_project_id` setting. Without it, only browser-extension
# connect works. Never commit a real value.
# Set a REAL 32-char hex project id from https://dashboard.reown.com to enable the
# WalletConnect QR option (placeholders are ignored by the app).
WALLETCONNECT_PROJECT_ID=
