-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
57 lines (46 loc) · 3.35 KB
/
Copy path.env.example
File metadata and controls
57 lines (46 loc) · 3.35 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
# ──────────────────────────────────────────────────────────────────────────
# urRoute environment. Copy to `.env` and fill in. NEVER commit `.env`.
# ──────────────────────────────────────────────────────────────────────────
# App
NODE_ENV=development
APP_URL=http://localhost:3000
# ── Database (Neon PostgreSQL) ──────────────────────────────────────────────
# Pooled URL for the app (PgBouncer), direct URL for migrations.
DATABASE_URL="postgresql://user:pass@host/db?sslmode=require&pgbouncer=true"
DIRECT_URL="postgresql://user:pass@host/db?sslmode=require"
# ── Auth (JWT) ──────────────────────────────────────────────────────────────
# Generate: openssl rand -base64 48
JWT_ACCESS_SECRET="change-me-access"
JWT_REFRESH_SECRET="change-me-refresh"
JWT_ACCESS_TTL="900" # seconds (15m)
JWT_REFRESH_TTL="1209600" # seconds (14d)
# Dedicated secret for /api/cron/* routes — kept separate from the JWT
# secrets above so rotating one never affects the other.
CRON_SECRET="change-me-cron"
# ── Cache / Queue (Upstash Redis) ───────────────────────────────────────────
UPSTASH_REDIS_REST_URL="https://xxx.upstash.io"
UPSTASH_REDIS_REST_TOKEN="xxx"
# BullMQ needs a raw redis:// connection (not REST). Upstash provides one too.
REDIS_URL="rediss://default:pass@host:6379"
# ── File storage (Cloudinary) ───────────────────────────────────────────────
CLOUDINARY_CLOUD_NAME=""
CLOUDINARY_API_KEY=""
CLOUDINARY_API_SECRET=""
# ── Email (Resend) ──────────────────────────────────────────────────────────
RESEND_API_KEY=""
EMAIL_FROM="urRoute <noreply@urroute.in>"
# ── Push (Firebase Cloud Messaging) ─────────────────────────────────────────
FIREBASE_PROJECT_ID=""
FIREBASE_CLIENT_EMAIL=""
FIREBASE_PRIVATE_KEY=""
# ── Payments (Razorpay) ─────────────────────────────────────────────────────
RAZORPAY_KEY_ID=""
RAZORPAY_KEY_SECRET=""
RAZORPAY_WEBHOOK_SECRET=""
# ── Analytics (PostHog) ─────────────────────────────────────────────────────
NEXT_PUBLIC_POSTHOG_KEY=""
NEXT_PUBLIC_POSTHOG_HOST="https://app.posthog.com"
# ── AI / RAG (Phase 2 support chat) ────────────────────────────────────────
GROQ_API_KEY="gsk_..."
UPSTASH_VECTOR_REST_URL="https://..."
UPSTASH_VECTOR_REST_TOKEN="..."