-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.env
More file actions
57 lines (46 loc) · 1.63 KB
/
Copy pathexample.env
File metadata and controls
57 lines (46 loc) · 1.63 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
# Enable or disable rate limiting
# Values: true, false
ENABLE_RATE_LIMITS=false
# Redis URL for rate limiting storage (recommended for production)
# Format: redis://[:password@]host[:port][/db-number]
# Leave empty to use in-memory storage (not recommended for production)
REDIS_URL=
# Cache configuration
# Values: simple, redis
CACHE_TYPE=simple
# Redis URL for cache storage (only used if CACHE_TYPE=redis)
# Format: redis://[:password@]host[:port][/db-number]
CACHE_REDIS_URL=
# Timeout in seconds for WHOIS queries
# Recommended range: 3-10 seconds
# Increase this if you're getting timeout errors
WHOIS_TIMEOUT=5
# Timeout in seconds for DNS queries
# Recommended range: 2-5 seconds
# Lower values for faster response, higher for reliability
DNS_TIMEOUT=3
# Port for the application to run on
# Common values: 3000, 8000, 8080
# Note: Some platforms (Railway, Heroku) will override this
PORT=3000
# Flask environment
# Values: development, production
# Use 'development' for local debugging, 'production' for deployment
FLASK_ENV=production
# Flask debug mode
# Values: true, false
# Enable only in development
FLASK_DEBUG=false
# Cache configuration
# Values in seconds (300 = 5 minutes)
# Increase for less frequent updates, decrease for more frequent
CACHE_TIMEOUT=300
# Rate limiting configuration (requests per minute)
# Only used if ENABLE_RATE_LIMITS=true
RATE_LIMIT_SINGLE=10 # Limit for single domain checks
RATE_LIMIT_BULK=5 # Limit for bulk domain checks
RATE_LIMIT_DAILY=100 # Daily request limit per IP
# Maximum domains in bulk request
# Range: 1-50 (default: 10)
# Higher values increase response time
MAX_BULK_DOMAINS=10