feat: Update backend .env.example with LoRRI production config and BRAIN_URL

#17
by MouleeswaranM - opened
Files changed (1) hide show
  1. ops/backend-dm/.env.example +30 -13
ops/backend-dm/.env.example CHANGED
@@ -1,18 +1,35 @@
1
- # FairRelay Ops Backend (Node.js/Express)
2
- # Copy .env.example and fill in your values
3
- DATABASE_URL="postgresql://postgres:password@localhost:5432/fairrelay"
4
- DIRECT_URL="postgresql://postgres:password@localhost:5432/fairrelay"
 
 
 
 
5
  PORT=3000
6
- JWT_SECRET=change-me-to-a-real-secret
7
- NODE_ENV=development
8
 
9
- # Twilio OTP (get credentials from https://console.twilio.com)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  TWILIO_ACCOUNT_SID=
11
  TWILIO_AUTH_TOKEN=
12
- TWILIO_PHONE_NUMBER=
13
-
14
- # CORS origins (comma-separated, used in production)
15
- CORS_ORIGINS=https://fairrelay.vercel.app,https://fairrelay-dashboard.vercel.app
16
 
17
- # Brain AI backend URL
18
- BRAIN_URL=http://localhost:8000
 
1
+ # ═══════════════════════════════════════════════════════════════
2
+ # FairRelay Backend β€” Node.js API Gateway
3
+ # ═══════════════════════════════════════════════════════════════
4
+ # This is the main API gateway that the ops dashboard and LoRRI
5
+ # platform connect to. It proxies AI requests to the FastAPI brain.
6
+
7
+ # Server
8
+ NODE_ENV=production
9
  PORT=3000
 
 
10
 
11
+ # PostgreSQL Database (Render managed, or Supabase, or Railway)
12
+ DATABASE_URL=postgresql://user:password@host:5432/fairrelay?schema=public
13
+
14
+ # AI Brain (FastAPI + LangGraph multi-agent system)
15
+ # This is the FairRelay brain service running on Render
16
+ BRAIN_URL=https://fairrelay-brain.onrender.com
17
+
18
+ # JWT Authentication
19
+ JWT_SECRET=change-this-to-a-secure-random-string-in-production
20
+
21
+ # CORS Origins (comma-separated)
22
+ # Include LoRRI production domain + ops dashboard + local dev
23
+ CORS_ORIGINS=https://logisticsnow.in,https://app.lorri.in,https://fairrelay.vercel.app,http://localhost:5173
24
+
25
+ # Gemini API (for LLM explanations in brain)
26
+ GOOGLE_API_KEY=
27
+
28
+ # OTP Provider (for driver/dispatcher auth)
29
+ OTP_PROVIDER=twilio
30
  TWILIO_ACCOUNT_SID=
31
  TWILIO_AUTH_TOKEN=
32
+ TWILIO_PHONE=
 
 
 
33
 
34
+ # Socket.IO (real-time updates)
35
+ SOCKET_CORS_ORIGINS=https://logisticsnow.in,https://app.lorri.in,https://fairrelay.vercel.app