-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
37 lines (30 loc) · 939 Bytes
/
Copy path.env.example
File metadata and controls
37 lines (30 loc) · 939 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
# ===========================================
# AuthX Environment Configuration (EXAMPLE)
# ===========================================
# Copy this file to .env and update values
# NOTE: Do NOT commit .env to GitHub
# Server Configuration
NODE_ENV=development
PORT=3000
# PostgreSQL Database
DB_HOST=localhost
DB_PORT=5432
DB_NAME=authx
DB_USER=postgres
DB_PASSWORD=your_db_password_here
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=your_redis_password_here_or_leave_blank
# JWT Secrets (CHANGE THESE IN PRODUCTION!)
# Generate with: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
ACCESS_TOKEN_SECRET=your_access_token_secret_min_64_bytes_hex
REFRESH_TOKEN_SECRET=your_refresh_token_secret_min_64_bytes_hex
# Token Expiry
ACCESS_TOKEN_EXPIRY=15m
REFRESH_TOKEN_EXPIRY_DAYS=7
# Security
BCRYPT_SALT_ROUNDS=12
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_ATTEMPTS=5