-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
41 lines (34 loc) · 879 Bytes
/
.env.example
File metadata and controls
41 lines (34 loc) · 879 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
# Environment template file
# Copy this to .env and fill in your values
# Server Configuration
PORT=3000
NODE_ENV=production
# Security Configuration
API_KEY_HEADER=X-API-Key
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
SLOW_DOWN_DELAY_AFTER=50
SLOW_DOWN_DELAY_MS=500
# Crawler Configuration
DEFAULT_TIMEOUT=30000
MAX_REDIRECTS=5
MAX_CONTENT_LENGTH=10485760
USER_AGENT_ROTATION=true
# Proxy Configuration (Optional)
PROXY_ENABLED=false
PROXY_HOST=your-proxy-host.com
PROXY_PORT=8080
PROXY_USERNAME=your-username
PROXY_PASSWORD=your-password
PROXY_TYPE=http
# Logging Configuration
LOG_LEVEL=info
LOG_FILE=logs/crawler.log
# CORS Configuration
CORS_ORIGIN=https://yourdomain.com
CORS_METHODS=GET,POST,PUT,DELETE,OPTIONS
CORS_ALLOWED_HEADERS=Content-Type,Authorization,X-API-Key
# Security Headers
SECURITY_HEADERS_ENABLED=true
CSP_ENABLED=true
HSTS_ENABLED=true