urmi-ai/.env.example
2026-10-12 23:19:09 +05:30

62 lines
2.6 KiB
Text

# Copy to repo root for Docker Compose:
# cp .env.example .env
#
# Compose uses this file for ${VAR} substitution and passes selected values
# into the backend/frontend containers. See docs/ENVIRONMENT.md for the full flow.
# --- Local development (default) ---
AUTH_SECRET=replace-with-at-least-32-random-characters
AUTH_COOKIE_SECURE=false
ENVIRONMENT=development
FRONTEND_ORIGIN=http://localhost:5173
# Optional comma-separated CORS origins (defaults to FRONTEND_ORIGIN)
# CORS_ORIGINS=https://urmiai.com,http://urmiai.com,https://www.urmiai.com,http://www.urmiai.com
VITE_API_URL=http://localhost:8000
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/callback
# --- Production example (urmiai.com + api.urmiai.com behind Caddy) ---
# AUTH_COOKIE_SECURE=true
# ENVIRONMENT=production
# FRONTEND_ORIGIN=https://urmiai.com
# CORS_ORIGINS=https://urmiai.com,http://urmiai.com,https://www.urmiai.com,http://www.urmiai.com
# VITE_API_URL=
# GOOGLE_REDIRECT_URI=https://urmiai.com/api/v1/auth/google/callback
# VOICE_RELAY_PUBLIC_URL=wss://urmiai.com/api/v1/voice
# Ultronsms gateway credentials (backend only)
ULTRONSMS_BASE_URL=https://ultronsms.com
ULTRONSMS_USER=GENZENITH
ULTRONSMS_PASSWORD=replace-with-ultronsms-password
# Voice relay (Bonvoice provider — backend only)
REDIS_URL=redis://redis: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
# Public WSS base; Bonvoice media endpoint = {VOICE_RELAY_PUBLIC_URL}/ws/media
VOICE_RELAY_PUBLIC_URL=ws://localhost:8000/api/v1/voice
# --- WhatsApp Business Platform (Meta tech provider / BSP) ---
PUBLIC_API_BASE_URL=http://localhost:8000
WHATSAPP_VERIFY_TOKEN=replace-with-a-long-random-string
WHATSAPP_APP_SECRET=
WHATSAPP_ACCESS_TOKEN=
WHATSAPP_PHONE_NUMBER_ID=
WHATSAPP_BUSINESS_ACCOUNT_ID=
META_APP_ID=
# Optional. Falls back to WHATSAPP_APP_SECRET when both belong to the same Meta app.
META_APP_SECRET=
# Facebook Login for Business configuration ID (Embedded Signup). Not a secret.
META_EMBEDDED_SIGNUP_CONFIG_ID=
# Optional Facebook Login for Business config for Pages and Ads. Do not put the WhatsApp Embedded Signup config here.
META_LOGIN_CONFIG_ID=
# Must match a Valid OAuth Redirect URI on the Meta app exactly.
# Production (same-origin /api on urmiai.com):
# META_OAUTH_REDIRECT_URI=https://urmiai.com/api/v1/meta/oauth/callback
# Local dev:
# META_OAUTH_REDIRECT_URI=http://localhost:8000/api/v1/meta/oauth/callback
META_OAUTH_REDIRECT_URI=
WHATSAPP_BUSINESS_PHONE=919411257916
WHATSAPP_API_VERSION=v21.0