forked from geturbackend/urBackend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (31 loc) · 2.68 KB
/
.env.example
File metadata and controls
40 lines (31 loc) · 2.68 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
# ─────────────────────────────────────────────────────────────────────────────
# urBackend — Environment Variables
# Copy this file to .env and fill in your values before running docker-compose.
# ─────────────────────────────────────────────────────────────────────────────
# ── Server Ports ────────────────────────────────────────────────────────────
PORT=1234 # For Admin Server (Dashboard)
USER_PORT=1235 # For User Server (Public API)
NODE_ENV=development
# ── Database & Cache ──────────────────────────────────────────────────────────
# When using docker-compose, these are automatically overridden to point to
# internal service names (mongo, redis). You do NOT need to change these.
MONGO_URL=mongodb://mongo:27017/urbackend
REDIS_URL=redis://redis:6379
# ── Authentication ────────────────────────────────────────────────────────────
JWT_SECRET=your_super_secret_jwt_key_min_32_chars
ENCRYPTION_KEY=32_character_long_string_for_byod_creds
API_KEY_SALT=your_random_api_key_salt
# Public API userAuth token config (optional; defaults shown)
PUBLIC_AUTH_ACCESS_TOKEN_TTL=15m
PUBLIC_AUTH_REFRESH_TOKEN_TTL_SECONDS=604800
# ── External Storage (Supabase) ───────────────────────────────────────────────
# Required for file upload/storage features.
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-supabase-anon-key
# ── Email (Resend) ────────────────────────────────────────────────────────────
# Required for OTP / email verification flow.
RESEND_API_KEY=re_your_resend_api_key
EMAIL_FROM=onboarding@resend.dev
# ── Frontend ──────────────────────────────────────────────────────────────────
FRONTEND_URL=http://localhost:5173
PUBLIC_API_URL=https://api.ub.bitbros.in