-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
62 lines (52 loc) · 2.85 KB
/
Copy path.env.example
File metadata and controls
62 lines (52 loc) · 2.85 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
# ── Server ──────────────────────────────────────────────
NODE_ENV=development
PORT=8000
# ── Database (PostgreSQL) ────────────────────────────────
POSTGRES_USER=your_postgres_user
POSTGRES_PASSWORD=your_postgres_password
POSTGRES_DB=colabs_db
DATABASE_URL="postgresql://your_postgres_user:your_postgres_password@localhost:5433/colabs_db?schema=public"
# ── Redis (cache + email retry queue) ────────────────────
REDIS_URL="redis://localhost:6379"
# ── JWT (session cookies) ────────────────────────────────
JWT_SECRET=your_super_secret_jwt_key_change_in_production_min_32_chars
JWT_EXPIRES_IN=7d
# ── Frontend (CORS + OAuth redirects + email links) ──────
FRONTEND_URL=http://localhost:8080
# ── GitHub OAuth (login only — separate from repo sync) ──
# Create at: github.com/settings/developers → OAuth Apps
# Callback URL must match GITHUB_CALLBACK_URL exactly
GITHUB_CLIENT_ID=your_github_oauth_app_client_id
GITHUB_CLIENT_SECRET=your_github_oauth_app_client_secret
GITHUB_CALLBACK_URL=http://localhost:8000/api/auth/github/callback
# ── Google OAuth (login) ─────────────────────────────────
# Create at: console.cloud.google.com → Credentials → OAuth client ID (Web)
# Redirect URI must match GOOGLE_CALLBACK_URL exactly
GOOGLE_CLIENT_ID=123456789012-xxxxxxxxxxxxxxxx.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-xxxxxxxxxxxxxxxx
GOOGLE_CALLBACK_URL=http://localhost:8000/api/auth/google/callback
# ── GitHub API (for syncing issues/repos — not login) ────
GITHUB_API_TOKEN=your_github_personal_access_token
# ── Email (verification + password reset) ────────────────
# Required for real email delivery (all three must be set):
# SMTP_HOST, SMTP_USER, SMTP_PASS
# Optional:
# SMTP_PORT (default 587), SMTP_SECURE (default false), SMTP_FROM (defaults to SMTP_USER)
# Leave SMTP_HOST empty in dev — links are logged to the console instead
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your_email@gmail.com
SMTP_PASS=your_gmail_app_password
SMTP_FROM=your_email@gmail.com
# Retry failed emails via Redis (exponential backoff from base delay)
EMAIL_MAX_RETRIES=5
EMAIL_RETRY_BASE_MS=30000
# ── MinIO Storage ────────────────────────────────────────
MINIO_ENDPOINT=localhost
MINIO_PORT=9000
MINIO_USE_SSL=false
MINIO_ROOT_USER=your_minio_user
MINIO_ROOT_PASSWORD=your_minio_password
MINIO_BUCKET_NAME=colabs
MINIO_PUBLIC_URL=http://localhost:9000/colabs