Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
68 lines (56 loc) · 2.72 KB
/
Copy path.env.example
File metadata and controls
68 lines (56 loc) · 2.72 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
# ─────────────────────────────────────────────────────────────────────────────
# urBackend — Environment Variables
# ─────────────────────────────────────────────────────────────────────────────
# Copy this file before editing:
# Linux/macOS: cp .env.example .env
# PowerShell: Copy-Item .env.example .env
# ==============================================================================
# [REQUIRED] CORE SETTINGS (Needed to run urBackend locally)
# ==============================================================================
# ── Server Ports ──
PORT=1234 # Admin Server (Dashboard)
USER_PORT=1235 # User Server (Public API)
NODE_ENV=development
# ── Database & Cache ──
# When using docker-compose, these point to internal service names.
# No need to change these for local testing.
MONGO_URL=mongodb://mongo:27017/urbackend
REDIS_URL=redis://redis:6379
# ── Authentication Secrets ──
# Any random 32+ character strings will work for local dev.
JWT_SECRET=super_secret_jwt_key_for_local_dev_only
ENCRYPTION_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
API_KEY_SALT=super_secret_api_key_salt_for_dev
# ── Frontend & Public API ──
FRONTEND_URL=http://localhost:5173
PUBLIC_API_URL=http://localhost:1235
# ==============================================================================
# [OPTIONAL] CLOUD & 3RD-PARTY INTEGRATIONS (For Production / Full Features)
# ==============================================================================
# ── Authentication Token TTLs ──
PUBLIC_AUTH_ACCESS_TOKEN_TTL=15m
PUBLIC_AUTH_REFRESH_TOKEN_TTL_SECONDS=604800
# ── External Storage (Supabase) ──
# Required for file upload/storage features.
# Get from: https://app.supabase.com → Project Settings → API
SUPABASE_URL=
SUPABASE_KEY=
# ── Email (Resend) ──
# Required for OTP / email verification flow.
# Get from: https://resend.com/api-keys
RESEND_API_KEY=
EMAIL_FROM=onboarding@resend.dev
RESEND_WEBHOOK_SECRET=
# ── Billing (Razorpay) ──
# Required for paid plans and subscription management.
# Get from: https://dashboard.razorpay.com → Settings → API Keys
RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=
RAZORPAY_PLAN_ID=
RAZORPAY_WEBHOOK_SECRET=
# ── Internal Microservices (AI & Python) ──
# Required for AI Query Builder and Python microservice communication
PYTHON_SERVICE_URL=http://localhost:8000
INTERNAL_SECRET=
INTERNAL_PAYLOAD_KEY=
GROQ_API_KEY=