feat: Update backend .env.example with LoRRI production config and BRAIN_URL
Browse files- ops/backend-dm/.env.example +30 -13
ops/backend-dm/.env.example
CHANGED
|
@@ -1,18 +1,35 @@
|
|
| 1 |
-
#
|
| 2 |
-
#
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
PORT=3000
|
| 6 |
-
JWT_SECRET=change-me-to-a-real-secret
|
| 7 |
-
NODE_ENV=development
|
| 8 |
|
| 9 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
TWILIO_ACCOUNT_SID=
|
| 11 |
TWILIO_AUTH_TOKEN=
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
# CORS origins (comma-separated, used in production)
|
| 15 |
-
CORS_ORIGINS=https://fairrelay.vercel.app,https://fairrelay-dashboard.vercel.app
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
|
|
|
|
| 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
|