-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
42 lines (33 loc) · 990 Bytes
/
.env.example
File metadata and controls
42 lines (33 loc) · 990 Bytes
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
# Environment Variables
# App Configuration
APP_ENV=development
APP_URL=http://localhost:3000
PORT=3000
# Database (PostgreSQL)
DATABASE_URL=postgresql://postgres:password@localhost:5432/auth_server?sslmode=disable
DB_POOL_MIN=2
DB_POOL_MAX=10
# Redis
REDIS_URL=redis://localhost:6379
REDIS_TTL=3600
# JWT Secrets (CHANGE THESE IN PRODUCTION!)
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
JWT_REFRESH_SECRET=your-super-secret-refresh-key-change-this-in-production
# OAuth (optional - configure when implementing OAuth)
GOOGLE_CLIENT_ID=
GOOGLE_ACCOUNT_LOCK_MAX_ATTEMPTS=5
ACCOUNT_LOCK_DURATION=30
# OAuth - Google
GOOGLE_CLIENT_ID=your_google_client_id
GOOGLE_CLIENT_SECRET=your_google_client_secret
# OAuth - GitHub
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GITHUB_CLIENT_SECRET=
# Email (SendGrid)
EMAIL_FROM=noreply@yourapp.com
SENDGRID_API_KEY=
# Security
BCRYPT_ROUNDS=12
RATE_LIMIT_WINDOW=900000
RATE_LIMIT_MAX=5