# ============================================================================== # SAHIH ISLAM ENTERPRISE - DEVELOPMENT ENVIRONMENT CONFIGURATION (.env.development) # ============================================================================== # Architecture Profile: Local Development & Unit/Integration Testing # Databases: Isolated to `sahihislam_dev`, `sahihislam_dev_admin`, `sahihislam_dev_commerce` # NEVER use production secrets or target production databases in development! # ============================================================================== # Application Environment Tier APP_ENV=development PORT=7860 # Database Configuration (MongoDB) # Local instance or dedicated development Atlas cluster MONGO_URI=mongodb://localhost:27017/sahihislam_dev MONGO_DB_NAME=sahihislam_dev MONGO_DB_ADMIN_NAME=sahihislam_dev_admin MONGO_DB_COMMERCE_NAME=sahihislam_dev_commerce MONGO_MAX_POOL_SIZE=10 MONGO_MIN_POOL_SIZE=2 MONGO_WAIT_QUEUE_TIMEOUT_MS=5000 # Cache & Distributed Rate Limiting (Redis) # Leave empty to use in-memory fallback cache during local development REDIS_URL= ENABLE_RATE_LIMIT=1 ENABLE_REDIS_RATE_LIMIT=0 # Security & Staff Master Key # In development, the default development key is permitted for convenience SECRET_KEY=sahihislam_enterprise_superadmin_master_secret_2026 STAFF_SECRET_KEY=sahihislam_enterprise_superadmin_master_secret_2026 # CORS Allowed Origins # Permits local Flutter Web and frontend test harnesses ALLOWED_ORIGINS=http://localhost:7860,http://localhost:8080,http://localhost:3000,http://127.0.0.1:7860,http://127.0.0.1:8080,http://127.0.0.1:3000 # Proxy & Network Isolation TRUSTED_PROXY_COUNT=0 TRUSTED_PROXY_HOSTS=* # Firebase Authentication & Admin SDK # Development sandbox project ID FIREBASE_PROJECT_ID=sahih-islam-dev # Path to local development service account key JSON or leave empty for local emulation FIREBASE_ADMIN_CREDENTIALS=firebase_credentials.dev.json # Google Play In-App Billing (Testing Sandbox) GOOGLE_PLAY_PACKAGE_NAME=com.sahihislam.app GOOGLE_PLAY_SERVICE_ACCOUNT_KEY= # Cloudflare R2 Storage (Edge Audio & Assets) CLOUDFLARE_ACCOUNT_ID=d7fc285dc6825480f6d8c887f93e7084 R2_ACCESS_KEY_ID=dev_placeholder_key_id R2_SECRET_ACCESS_KEY=dev_placeholder_secret_key R2_BUCKET_NAME=sahihislam-dev R2_PUBLIC_DOMAIN=https://dev-cdn.sahihislam.com CF_WORKER_URL=http://localhost:8787 # LLM Providers (Hadith & Quran Multi-lingual AI) DEEPSEEK_API_KEY= XAI_API_KEY= OPENROUTER_API_KEY= ML_CONCURRENCY=2 # Observability LOG_LEVEL=DEBUG