-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
52 lines (44 loc) · 1.97 KB
/
Copy path.env.example
File metadata and controls
52 lines (44 loc) · 1.97 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
# ─── Shared ─────────────────────────────────────
NODE_ENV=development
LOG_LEVEL=debug
# ─── Gateway ────────────────────────────────────
GATEWAY_PORT=3000
REDIS_URL=redis://localhost:6379
ACCESS_TOKEN_SECRET=change-me-at-least-32-chars-long!!
CORS_ORIGINS=*
ALERT_SECRET=change-me-alert-secret-at-least-16-chars
# ─── Auth Service ───────────────────────────────
AUTH_PORT=4001
DATABASE_URL=postgresql://user:password@localhost:5432/authdb?schema=public
REFRESH_TOKEN_SECRET=change-me-refresh-secret-32-chars-min!!
# OAuth (optional — for social login)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=http://localhost:3000/api/v1/oauth/google/callback
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_REDIRECT_URI=http://localhost:3000/api/v1/oauth/github/callback
# Email / SMTP (optional — defaults to mock driver)
EMAIL_DRIVER=mock
SMTP_HOST=
SMTP_PORT=587
SMTP_USER=
SMTP_PASS=
SMTP_SECURE=false
FROM_EMAIL=noreply@api-gateway.local
# ─── Project Service ────────────────────────────
PROJECT_PORT=4002
# DATABASE_URL (uses same postgres, different DB name)
# ─── Analytics Service ──────────────────────────
ANALYTICS_PORT=4003
MONGO_URI=mongodb://localhost:27017/logging
GATEWAY_URL=http://localhost:3000
ALERT_INTERVAL_MS=30000
# ─── Logging Service ────────────────────────────
LOGGING_PORT=4004
# MONGO_URI (shared with analytics)
# ─── Service URLs (for gateway routing) ─────────
AUTH_SERVICE_URL=http://localhost:4001
PROJECT_SERVICE_URL=http://localhost:4002
ANALYTICS_SERVICE_URL=http://localhost:4003
LOGGING_SERVICE_URL=http://localhost:4004