-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
23 lines (20 loc) · 1.18 KB
/
.env.example
File metadata and controls
23 lines (20 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Server Configuration
PORT=8080 # Server port (default: 8080)
HOST=0.0.0.0 # Binding host (default: 0.0.0.0)
APP_NAME=Fake Mill API # Application name
PREFORK=false # Enables prefork mode (default: false)
READ_TIMEOUT=5s # Read timeout (default: 5s)
WRITE_TIMEOUT=10s # Write timeout (default: 10s)
IDLE_TIMEOUT=120s # Idle timeout (default: 120s)
# Logging Configuration
ENV=development # Environment (development, production)
LOG_LEVEL=debug # Logging level (debug, info, warn, error)
# Rate Limiting Configuration
RATE_LIMIT_ENABLED=true # Enables rate limiting (default: true)
RATE_LIMIT_REQUESTS=60 # Number of allowed requests (default: 60)
RATE_LIMIT_WINDOW=1m # Time window (default: 1m)
# CORS Configuration
CORS_ALLOW_ORIGINS=* # Allowed origins (default: *)
CORS_ALLOW_METHODS=GET, OPTIONS, POST # Allowed methods
CORS_ALLOW_HEADERS=Content-Type, Authorization # Allowed headers
CORS_MAX_AGE=86400 # Max age in seconds (default: 86400)