# Copy to backend/.env when running the API outside Docker: # cp .env.example .env # # Pydantic reads backend/.env and also ../.env (repo root) if present. # --- Core --- APP_NAME=Urmi API ENVIRONMENT=development # Local Postgres (host port 5433 when using docker compose postgres) DATABASE_URL=postgresql+psycopg://urmi:urmi@localhost:5433/urmi # Must match the browser origin serving the frontend (CORS + OAuth redirect target) FRONTEND_ORIGIN=http://localhost:5173 # Production: FRONTEND_ORIGIN=https://urmiai.com # Production: CORS_ORIGINS=https://urmiai.com,http://urmiai.com,https://www.urmiai.com,http://www.urmiai.com # --- Auth / sessions --- # Required in production. Use at least 32 random characters. AUTH_SECRET=replace-with-at-least-32-random-characters # Set true behind HTTPS in production AUTH_COOKIE_SECURE=false # Session cookie lifetime in minutes (default: 10080 = 7 days) ACCESS_TOKEN_MINUTES=10080 # --- Google OAuth (optional for local email/password auth) --- GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= GOOGLE_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/callback # Production: GOOGLE_REDIRECT_URI=https://api.urmiai.com/api/v1/auth/google/callback # Admin portal (/admin) ADMIN_USERNAME=root ADMIN_PASSWORD=replace-with-strong-admin-password # --- Ultronsms gateway (server-side only; never expose to frontend) --- ULTRONSMS_BASE_URL=https://ultronsms.com ULTRONSMS_USER=GENZENITH ULTRONSMS_PASSWORD=replace-with-ultronsms-password # --- Voice relay / Bonvoice (server-side only) --- REDIS_URL=redis://localhost:6379/0 BONVOICE_TOKEN=replace-with-bonvoice-token BONVOICE_API_URL=https://backend.pbx.bonvoice.com/autoDialManagement/autoCallBridging/ BONVOICE_MEDIA_ALLOWLIST=103.131.25.5 VOICE_RELAY_PUBLIC_URL=ws://localhost:8000/api/v1/voice # Production: VOICE_RELAY_PUBLIC_URL=wss://api.urmiai.com/api/v1/voice # Bonvoice portal voicebot endpoint: wss://api.urmiai.com/api/v1/voice/ws/media # --- WhatsApp Business Platform (Meta tech provider / BSP) --- # Public HTTPS API base — used to build the webhook callback URL shown in console PUBLIC_API_BASE_URL=https://api.urmiai.com # Callback verify token — paste the SAME value in Meta → Configure Webhooks → Verify token WHATSAPP_VERIFY_TOKEN=replace-with-a-long-random-string # App secret from Meta App Dashboard → App settings → Basic WHATSAPP_APP_SECRET= # System user or long-lived token with whatsapp_business_messaging + whatsapp_business_management WHATSAPP_ACCESS_TOKEN= # From Meta → WhatsApp → API Setup (Phone number ID) WHATSAPP_PHONE_NUMBER_ID= # WhatsApp Business Account ID (WABA) WHATSAPP_BUSINESS_ACCOUNT_ID= # Meta App ID META_APP_ID= # Facebook Login for Business configuration ID (Embedded Signup). Not a secret. META_EMBEDDED_SIGNUP_CONFIG_ID= # Urmi business WhatsApp number (E.164 without +) WHATSAPP_BUSINESS_PHONE=919411257916 WHATSAPP_API_VERSION=v21.0