# ============================================================
# Premium Way — Environment Configuration
# Copy to .env and fill in your real values
# NEVER commit this file to version control
# ============================================================

APP_NAME="Premium Way"
APP_URL="https://clientdemo.acbizglobal.com"
APP_ENV="development"
APP_KEY="change-this-to-a-random-32-char-secret"

# ── Database ─────────────────────────────────────────────────
DB_HOST="localhost"
DB_PORT="3306"
DB_NAME="yourusername_lsc"
DB_USER="yourusername"
DB_PASS="yourpassword"
DB_CHARSET="utf8mb4"
DB_PERSISTENT="false"

# ── Security ──────────────────────────────────────────────────
SESSION_NAME="lsc_session"
ADMIN_SESSION_KEY="lsc_admin_2026"
JWT_SECRET="change-this-to-a-long-random-secret-for-jwt"
JWT_EXPIRY="86400"
JWT_REFRESH_EXPIRY="604800"

# ── Pricing ──────────────────────────────────────────────────
PRICE_PER_KM="2.50"
PRICE_PER_KG="8.00"
MIN_QUOTE="85.00"
MULTIPLIER_STANDARD="1.0"
MULTIPLIER_EXPRESS="1.5"
MULTIPLIER_SAME_DAY="2.2"

# ── Africa's Talking SMS ──────────────────────────────────────
AT_USERNAME="sandbox"
AT_API_KEY="your-africastalking-api-key"
AT_SENDER_ID="LSCCOURIER"
AT_ENV="sandbox"

# ── WhatsApp Business Cloud API (Meta) ───────────────────────
WA_ACCESS_TOKEN="your-whatsapp-access-token"
WA_PHONE_NUMBER_ID="your-phone-number-id"
WA_VERIFY_TOKEN="your-webhook-verify-token"
WA_API_VERSION="v19.0"

# ── Email / SMTP ──────────────────────────────────────────────
MAIL_HOST="smtp.gmail.com"
MAIL_PORT="587"
MAIL_USERNAME="your-email@gmail.com"
MAIL_PASSWORD="your-app-password"
MAIL_ENCRYPTION="tls"
MAIL_FROM_ADDRESS="noreply@premiumway.co.zm"
MAIL_FROM_NAME="Premium Way"

# ── Rate Limiting ─────────────────────────────────────────────
RATE_LIMIT_REQUESTS="60"
RATE_LIMIT_WINDOW="60"
RATE_LIMIT_LOGIN_REQUESTS="10"
RATE_LIMIT_LOGIN_WINDOW="300"

# ── API / Mobile ──────────────────────────────────────────────
CORS_ALLOWED_ORIGINS="*"

# ── Premium Way v3 Enterprise Settings ──────────────────────
APP_NAME="Premium Way"
APP_ENV=production
APP_URL=https://premiumway.co.zm

# Platform Yield Commission (overridden by system_settings.pyc_pct)
PYC_PCT=15
PYC_LABEL=PYC

# Escrow
ESCROW_ENABLED=true
ESCROW_AUTO_RELEASE_HOURS=48

# Currency
CURRENCY_CODE=ZMW
CURRENCY_SYMBOL=K

# CORS (comma-separated origins, or * for all)
CORS_ALLOWED_ORIGINS=*

# FCM (Firebase Cloud Messaging for push notifications)
FCM_PROJECT_ID=
FCM_SERVER_KEY=

# Redis (optional — for rate limiting & cache)
REDIS_HOST=
REDIS_PORT=6379
REDIS_PASSWORD=
