-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy path.env.example
More file actions
32 lines (25 loc) · 1.09 KB
/
.env.example
File metadata and controls
32 lines (25 loc) · 1.09 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
# ─── Database ───
DATABASE_URL=postgresql://devcard:devcard@localhost:5432/devcard?schema=public
# ─── Redis ───
REDIS_URL=redis://localhost:6379
# ─── JWT ───
# JWT_SECRET: any long random string, minimum 32 characters
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
JWT_SECRET=your-super-secret-jwt-key-change-in-production
# ─── Encryption (for OAuth tokens) ───
# ENCRYPTION_KEY: must be exactly 32 bytes = 64 hex characters
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
ENCRYPTION_KEY=your-32-byte-hex-encryption-key-here
# ─── GitHub OAuth ───
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
# ─── Google OAuth ───
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
# ─── App URLs ───
PUBLIC_APP_URL=http://localhost:5173
BACKEND_URL=http://localhost:3000
MOBILE_REDIRECT_URI=devcard://oauth/callback
# ─── Server ───
PORT=3000
NODE_ENV=development