File size: 2,411 Bytes
8f9c4ef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# ═══════════════════════════════════════════════════════════════
# CodeSync β€” Environment Variables
# Copy to .env and fill in your values
# ═══════════════════════════════════════════════════════════════

# ─── Server ────────────────────────────────────────────────────
NODE_ENV=development
PORT=4000
CLIENT_URL=http://localhost:3000

# ─── Database (PostgreSQL) ─────────────────────────────────────
DATABASE_URL=postgresql://codesync:codesync@localhost:5432/codesync

# ─── Redis (Upstash) ──────────────────────────────────────────
# Get these from https://console.upstash.com
UPSTASH_REDIS_URL=https://your-redis.upstash.io
UPSTASH_REDIS_TOKEN=your-upstash-token

# ─── JWT Secrets ──────────────────────────────────────────────
# Generate with: openssl rand -base64 64
JWT_ACCESS_SECRET=your-access-secret-min-32-chars
JWT_REFRESH_SECRET=your-refresh-secret-min-32-chars
JWT_ACCESS_EXPIRY=15m
JWT_REFRESH_EXPIRY=7d

# ─── Google OAuth (optional) ──────────────────────────────────
# Get from https://console.cloud.google.com/apis/credentials
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_CALLBACK_URL=http://localhost:4000/api/auth/google/callback

# ─── AI (OpenRouter) ─────────────────────────────────────────
# Get from https://openrouter.ai/keys
OPENROUTER_API_KEY=your-openrouter-api-key
AI_MODEL=google/gemini-pro

# ─── Docker ───────────────────────────────────────────────────
DOCKER_SOCKET=/var/run/docker.sock
DOCKER_NETWORK=codesync-sandbox