config changes

This commit is contained in:
debu-2 2026-10-02 11:58:57 +05:30
parent 38eb2a11d5
commit 9000110d25
5 changed files with 28 additions and 12 deletions

View file

@ -2,20 +2,25 @@
# cp .env.example .env
#
# Compose uses this file for ${VAR} substitution and passes selected values
# into the backend container. See docs/ENVIRONMENT.md for the full flow.
# into the backend/frontend containers. See docs/ENVIRONMENT.md for the full flow.
# --- Backend auth (passed into urmi-backend) ---
# --- Local development (default) ---
AUTH_SECRET=replace-with-at-least-32-random-characters
AUTH_COOKIE_SECURE=false
# Google OAuth — optional until you enable "Continue with Google"
ENVIRONMENT=development
FRONTEND_ORIGIN=http://localhost:5173
VITE_API_URL=http://localhost:8000
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=http://localhost:8000/api/v1/auth/google/callback
# --- Optional overrides (uncomment if needed) ---
# FRONTEND_ORIGIN=http://localhost:5173
# DATABASE_URL=postgresql+psycopg://urmi:urmi@postgres:5432/urmi
# --- Production example (urmiai.com + api.urmiai.com behind Caddy) ---
# AUTH_COOKIE_SECURE=true
# ENVIRONMENT=production
# FRONTEND_ORIGIN=https://urmiai.com
# VITE_API_URL=https://api.urmiai.com
# GOOGLE_REDIRECT_URI=https://api.urmiai.com/api/v1/auth/google/callback
# VOICE_RELAY_PUBLIC_URL=wss://api.urmiai.com/api/v1/voice
# Ultronsms gateway credentials (backend only)
ULTRONSMS_BASE_URL=https://ultronsms.com
@ -27,5 +32,5 @@ 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 for Bonvoice templates (use wss:// in production, e.g. ngrok or your domain)
# Public WSS base; Bonvoice media endpoint = {VOICE_RELAY_PUBLIC_URL}/ws/media
VOICE_RELAY_PUBLIC_URL=ws://localhost:8000/api/v1/voice