# YOUPI PG - Environment Configuration Template # ============================================================ # Copy this file to .env and configure for your deployment. # NEVER commit .env with real secrets to version control. # ============================================================ # --- NODE ENVIRONMENT --- NODE_ENV=development # --- SERVICE PORTS (Strictly Non-Docker Standard Host Topology) --- CONTROL_CENTER_PORT=8090 PAYMENT_API_PORT=6100 CHECKOUT_PORTAL_PORT=7000 MERCHANT_ADMIN_PORT=6001 HELP_PORTAL_PORT=3000 GMAIL_OBSERVER_PORT=6003 SMS_OBSERVER_PORT=6002 COIN_WALLET_STORE_PORT=5000 # --- PUBLIC SERVICE URLS --- BASE_PAYMENT_API_URL=http://localhost:6100 BASE_CHECKOUT_URL=http://localhost:7000 BASE_ADMIN_URL=http://localhost:6001 BASE_HELP_URL=http://localhost:3000 BASE_DEMO_STORE_URL=http://localhost:5000 # --- DATABASE CONFIGURATION --- # PostgreSQL connection string: DATABASE_URL=postgresql://postgres:postgres@localhost:5432/youpi_pg # SQLite local file fallback for instant zero-dependency testing: USE_SQLITE_FALLBACK=true SQLITE_DB_PATH=./data/youpi_pg.sqlite # --- CRYPTOGRAPHIC SECRETS (Generate using crypto.randomBytes(32).toString('hex')) --- # Master 256-bit encryption key for sensitive records (OAuth tokens, device keys): ENCRYPTION_MASTER_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef # Session & JWT secret: JWT_SECRET=super_secret_jwt_key_change_in_production_min_32_chars # Default Admin credentials for initial setup: INITIAL_ADMIN_EMAIL=admin@youpi.local INITIAL_ADMIN_PASSWORD=AdminSecurePassword123! # --- TIMING & QUEUE ENGINE CONSTANTS --- # Payment active window (milliseconds, default 5 minutes = 300000): PAYMENT_ACTIVE_WINDOW_MS=300000 # Payment processing verification window (milliseconds, default 30 seconds = 30000): PAYMENT_PROCESSING_WINDOW_MS=30000 # Late observation grace evaluation window (milliseconds, default 30 minutes = 1800000): LATE_OBSERVATION_WINDOW_MS=1800000 # --- GMAIL OBSERVER CONFIGURATION --- GMAIL_CLIENT_ID=your-google-client-id.apps.googleusercontent.com GMAIL_CLIENT_SECRET=your-google-client-secret GMAIL_REDIRECT_URI=http://localhost:6003/oauth/callback GMAIL_POLL_INTERVAL_MS=5000 # --- SMS / GOOGLE MESSAGES OBSERVER --- SMS_OBSERVER_POLL_INTERVAL_MS=3000 # --- ANDROID OBSERVER SECURITY --- ANDROID_ENROLLMENT_SECRET=android_pairing_enrollment_secret_key_32_chars ANDROID_HEARTBEAT_TIMEOUT_MS=180000 # --- WEBHOOK ENGINE --- WEBHOOK_MAX_RETRIES=5 WEBHOOK_INITIAL_BACKOFF_MS=5000 # --- WHITE-LABEL BRANDING --- DEFAULT_APP_NAME="YOUPI PG" DEFAULT_PRIMARY_COLOR="#2563eb" DEFAULT_SUPPORT_EMAIL="support@youpi.local"