- Updated app.config.ts to use process.cwd() for resolving environment file paths, improving compatibility with pnpm. - Replaced ensure_env function with check_app_env in manage.sh to verify the existence of required environment files for BFF and optional files for Portal, enhancing error handling and user guidance.
80 lines
3.0 KiB
Plaintext
80 lines
3.0 KiB
Plaintext
# =============================================================================
|
|
# Customer Portal BFF - Development Environment
|
|
# =============================================================================
|
|
# Copy this file to .env in apps/bff/:
|
|
# cp .env.example .env
|
|
#
|
|
# For environment-specific overrides, use:
|
|
# .env.development - development defaults
|
|
# .env.development.local - local dev overrides (gitignored)
|
|
# .env.local - local overrides for any environment (gitignored)
|
|
# =============================================================================
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Database (Required)
|
|
# -----------------------------------------------------------------------------
|
|
DATABASE_URL=postgresql://dev:dev@localhost:5432/portal_dev?schema=public
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Security (Required)
|
|
# -----------------------------------------------------------------------------
|
|
# Generate with: openssl rand -base64 32
|
|
JWT_SECRET=dev-secret-change-in-production-min-32-chars
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Redis
|
|
# -----------------------------------------------------------------------------
|
|
REDIS_URL=redis://localhost:6379
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Server
|
|
# -----------------------------------------------------------------------------
|
|
BFF_PORT=4000
|
|
APP_BASE_URL=http://localhost:3000
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# CORS
|
|
# -----------------------------------------------------------------------------
|
|
CORS_ORIGIN=http://localhost:3000
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Logging
|
|
# -----------------------------------------------------------------------------
|
|
LOG_LEVEL=debug
|
|
PRETTY_LOGS=true
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Rate Limiting (relaxed for development)
|
|
# -----------------------------------------------------------------------------
|
|
RATE_LIMIT_LIMIT=1000
|
|
AUTH_RATE_LIMIT_LIMIT=10
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Dev Bypasses (NEVER enable in production!)
|
|
# -----------------------------------------------------------------------------
|
|
# DISABLE_CSRF=true
|
|
# DISABLE_RATE_LIMIT=true
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# External Services (Optional - configure when testing integrations)
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# --- WHMCS (Billing) ---
|
|
# WHMCS_BASE_URL=
|
|
# WHMCS_API_IDENTIFIER=
|
|
# WHMCS_API_SECRET=
|
|
|
|
# --- Salesforce (CRM) ---
|
|
# SF_LOGIN_URL=
|
|
# SF_CLIENT_ID=
|
|
# SF_USERNAME=
|
|
# SF_PRIVATE_KEY_PATH=./secrets/sf-private.key
|
|
|
|
# --- Freebit (SIM Management) ---
|
|
# FREEBIT_BASE_URL=
|
|
# FREEBIT_OEM_KEY=
|
|
|
|
# --- SendGrid (Email) ---
|
|
# SENDGRID_API_KEY=
|
|
# EMAIL_FROM=no-reply@example.com
|