-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
64 lines (50 loc) · 1.4 KB
/
.env.example
File metadata and controls
64 lines (50 loc) · 1.4 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
63
64
# ============================================
# Environment Configuration
# ============================================
# Copy this file to .env and adjust values
# Node Environment
NODE_ENV=development
# Server Configuration
PORT=3000
HOST=0.0.0.0
# API Configuration
API_VERSION=v1
API_PREFIX=/api
# CORS Configuration
# For local development with frontend on port 3001, use:
# CORS_ORIGIN=http://localhost:3001
# Or keep '*' to allow all origins (convenient for development)
CORS_ORIGIN=*
CORS_CREDENTIALS=true
# Rate Limiting
RATE_LIMIT_WINDOW_MS=10000
RATE_LIMIT_MAX_REQUESTS=20
# Slow Down (for gradual rate limiting)
SLOW_DOWN_WINDOW_MS=10000
SLOW_DOWN_DELAY_AFTER=10
SLOW_DOWN_DELAY_MS=500
# Cache Configuration
CACHE_TTL_ITEMS=30000
CACHE_TTL_DEFAULT=5000
# Database Configuration
DB_PATH=./app.db
DB_MAX_CONNECTIONS=10
# Logging Configuration
LOG_LEVEL=debug
LOG_PRETTY_PRINT=true
# Request Timeout (milliseconds)
REQUEST_TIMEOUT=30000
# Reservation Configuration
RESERVATION_TIMEOUT_MINUTES=10
# Pagination Defaults
DEFAULT_PAGE_SIZE=20
MAX_PAGE_SIZE=100
# Health Check Configuration
HEALTH_CHECK_INTERVAL=30000
# ============================================
# Notes:
# ============================================
# - Never commit .env files to version control
# - Use strong secrets in production
# - Configure different values for staging/production
# - LOG_PRETTY_PRINT should be false in production