# 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 FRONTEND_ORIGIN=http://localhost:5173 # --- 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 # 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