-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
29 lines (24 loc) · 625 Bytes
/
env.example
File metadata and controls
29 lines (24 loc) · 625 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
# Reddit API Credentials (Required)
REDDIT_CLIENT_ID=your_reddit_client_id
REDDIT_CLIENT_SECRET=your_reddit_client_secret
REDDIT_USER_AGENT=cat-api/1.0.0
# Redis (Optional, for enhanced caching)
REDIS_URL=redis://localhost:6379/0
# Performance Tuning
THREAD_POOL_SIZE=10
CACHE_TTL=3600
REQUEST_TIMEOUT=5
COMPRESSION_THRESHOLD=1024
# Prefetching Configuration
PREFETCH_BATCH_SIZE=5
PREFETCH_INTERVAL=600
MIN_IMAGES_PER_SUBREDDIT=5
MAX_PREFETCH_ERRORS=3
PREFETCH_RETRY_DELAY=30
# Security
ALLOWED_ORIGINS=https://api.pur.cat,http://localhost:3000
RATE_LIMIT=60
LOG_LEVEL=INFO
# Server Configuration
PORT=3000
HOST=0.0.0.0