-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
34 lines (28 loc) · 771 Bytes
/
Copy path.env.example
File metadata and controls
34 lines (28 loc) · 771 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
# Server Configuration
NODE_ENV=production
APP_STAGE=development
PORT=3000
# Database Configuration
DATABASE_USER=username
DATABASE_PASSWORD=password
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=habit_tracker
DATABASE_MAINTENANCE=postgres
DATABASE_URL=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:${DATABASE_PORT}/${DATABASE_NAME}
DATABASE_POOL_MIN=2
DATABASE_POOL_MAX=10
# JWT Configuration
JWT_SECRET='openssl rand -base64 32'
JWT_EXPIRES_IN=1h
REFRESH_TOKEN_SECRET='openssl rand -base64 32'
REFRESH_TOKEN_EXPIRES_IN=7d
# Security
BCRYPT_SALT_ROUNDS=12
# CORS Configuration
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Logging
LOG_LEVEL=info