Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
99 lines (81 loc) · 4.06 KB
/
Copy path.env.example
File metadata and controls
99 lines (81 loc) · 4.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# ==============================================================================
# VIDUR SALES PLATFORM — ENVIRONMENT CONFIGURATION TEMPLATE
# ==============================================================================
# ------------------------------------------------------------------------------
# 1. FRONTEND ENVIRONMENT VARIABLES (Vercel Project Settings)
# Only variables prefixed with VITE_ are exposed to the client bundle.
# API server URL (use http://localhost:8000 for local dev or production URL on deployment)
VITE_API_URL=http://localhost:8000
# WebSocket URL (use ws://localhost:8000 for local dev or wss production URL on deployment)
VITE_WS_URL=ws://localhost:8000
# ------------------------------------------------------------------------------
# 2. BACKEND ENVIRONMENT VARIABLES (Render Web Service Environment Settings)
# These are strictly server-side and NEVER bundled or exposed to the client.
# ------------------------------------------------------------------------------
# Environment mode: development | production | test
ENVIRONMENT=production
# Server Port (Render sets this dynamically via $PORT)
PORT=8000
# PostgreSQL Connection String (Render provides this via Managed Database)
# e.g., postgresql://vidur_user:password@dpg-xxxx-a.oregon-postgres.render.com/vidur_sales
DATABASE_URL=postgresql://vidur_user:password@localhost:5432/vidur_sales
# Secret Key for JWT Signing & Token Authentication (Minimum 32 characters)
SECRET_KEY=generate-a-strong-random-32-byte-hex-key-here
# CORS Allowed Origins (Comma-separated list or JSON array; supports Vercel domains)
CORS_ORIGINS=https://vidur-sales-os.vercel.app,http://localhost:3000,http://localhost:5173
# Logging Level: DEBUG | INFO | WARNING | ERROR
LOG_LEVEL=INFO
# --- Email Dispatch & Live SMTP (Pitch & Follow-Up Dispatches) ---
# Supports Gmail, SendGrid, Amazon SES, Brevo, Mailgun, or local Mailpit/MailHog relays.
# Leave SMTP_HOST blank to operate in sandbox mode (logged to DB and console without dispatching).
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=sales@vidur.in
SMTP_PASS=your-smtp-app-password
SMTP_FROM=sales@vidur.in
SMTP_FROM_NAME="Vidur AI Sales Team"
SMTP_REPLY_TO=support@vidur.in
# Set to 'ssl' or 'true' for port 465, or leave blank/tls for port 587
SMTP_SECURE=tls
# Set to true to strictly require live SMTP and raise errors if credentials fail
REQUIRE_LIVE_EMAIL=false
# --- Telephony Carrier Credentials (Phase 6) ---
TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_AUTH_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_PHONE_NUMBER=+15550199000
TWILIO_SMS_NUMBER=+18777804236
DEFAULT_DESTINATION_PHONE=+918320441189
DEFAULT_DESTINATION_EMAIL=meghrana2007@gmail.com
# Default Calendly booking link sent via SMS and Email when human transfer is requested
DEFAULT_CALENDLY_URL=https://calendly.com/meghrana2007/30min
# Public HTTPS base URL that Twilio can reach for TwiML webhooks.
# Required when running behind a tunnel (cloudflared / localhost.run / ngrok).
# Leave blank to auto-detect from logs/tunnel_url.txt written by start-dev.sh.
# Example: TWILIO_WEBHOOK_BASE_URL=https://xxxx.trycloudflare.com
TWILIO_WEBHOOK_BASE_URL=
EXOTEL_SID=
EXOTEL_TOKEN=
# --- CRM Integrations OAuth (Phase 5) ---
HUBSPOT_CLIENT_ID=vidur-hubspot-oauth-client
HUBSPOT_CLIENT_SECRET=vidur-hubspot-secret-key
HUBSPOT_REDIRECT_URI=https://vidur-sales-os.vercel.app/settings/integrations/hubspot/callback
# --- AI Voice Models & Sarvam Cloud API (Phase 6/8) ---
# Sarvam Cloud API Key (for STT/TTS - has fallback to local Whisper/Edge-TTS)
SARVAM_API_KEY=your_sarvam_api_key_here
SARVAM_LLM_MODEL=sarvam-105b
SARVAM_TTS_MODEL=bulbul:v4
# AI Provider Configuration
# LLM uses Ollama (local Gemma model) by default
AI_PROVIDER=ollama
LLM_PROVIDER=ollama
AI_MODEL=gemma3:4b
# STT Provider: sarvam (with Whisper fallback) or whisper (local only)
STT_PROVIDER=sarvam
# TTS Provider: sarvam (with Edge-TTS fallback) or edge-tts (local only)
TTS_PROVIDER=sarvam
# Ollama Configuration (Local Gemma Model for LLM)
OLLAMA_MODEL=gemma3:4b
OLLAMA_HOST=http://localhost:11434
OLLAMA_TEMPERATURE=0.5
OLLAMA_NUM_CTX=8192
OLLAMA_NUM_GPU=99