-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy path.env.example
More file actions
105 lines (81 loc) · 3.87 KB
/
Copy path.env.example
File metadata and controls
105 lines (81 loc) · 3.87 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# =============================================================================
# Reader Environment Variables
# =============================================================================
# -----------------------------------------------------------------------------
# Core Configuration
# -----------------------------------------------------------------------------
# Logging level: debug, info, warn, error (default: info)
LOG_LEVEL=info
# Environment: development (pretty logs) or production (JSON logs)
NODE_ENV=development
# -----------------------------------------------------------------------------
# Browser Pool Configuration
# -----------------------------------------------------------------------------
# Number of browser instances in the pool (default: 2)
POOL_SIZE=5
# Retire browser after N page loads (default: 100)
POOL_RETIRE_AFTER_PAGES=100
# Retire browser after N milliseconds (default: 1800000 = 30 minutes)
POOL_RETIRE_AFTER_MS=1800000
# Maximum pending requests in queue (default: 100)
MAX_QUEUE_SIZE=100
# Queue timeout in milliseconds (default: 120000 = 2 minutes)
QUEUE_TIMEOUT=120000
# -----------------------------------------------------------------------------
# Server Configuration (for production examples)
# -----------------------------------------------------------------------------
# HTTP server port
PORT=3001
# -----------------------------------------------------------------------------
# Proxy Configuration (optional)
# -----------------------------------------------------------------------------
#
# Two-tier proxy pools read by the daemon at startup (src/proxy/env.ts).
# Datacenter = fast, cheap, most sites. Residential = slow, expensive,
# needed for aggressive anti-bot sites (Amazon, LinkedIn, booking, etc.).
#
# Each var accepts either a single URL or a comma-separated list:
# PROXY_DATACENTER=http://user:pass@host1:port
# PROXY_DATACENTER=http://user:pass@host1:port,http://user:pass@host2:port
#
# Leave a tier unset (or blank) to skip it — the daemon will log
# "proxies loaded: N datacenter, M residential" on startup.
#
# IPRoyal example (you'll get the full URL with creds from their dashboard):
# PROXY_DATACENTER=http://username:password@dc.iproyal.com:12321
# PROXY_RESIDENTIAL=http://username:password@residential.iproyal.com:12321
#
# PROXY_DATACENTER=
# PROXY_RESIDENTIAL=
# Legacy single-proxy URL (used only when PROXY_DATACENTER/RESIDENTIAL
# are unset and you want a simple rotation list via code). Most users
# should use the tier-based vars above instead.
# PROXY_URL=
# -----------------------------------------------------------------------------
# Job Queue Configuration (for BullMQ examples)
# -----------------------------------------------------------------------------
# Redis connection URL
# REDIS_URL=redis://localhost:6379
# Number of concurrent jobs per worker (default: 2)
# WORKER_CONCURRENCY=2
# -----------------------------------------------------------------------------
# AI Integration (for AI examples)
# -----------------------------------------------------------------------------
# OpenAI API key (for openai-summary, vercel-ai-stream, embeddings)
# OPENAI_API_KEY=sk-...
# Anthropic API key (for anthropic-summary)
# ANTHROPIC_API_KEY=sk-ant-...
# -----------------------------------------------------------------------------
# Vector Database (for RAG examples)
# -----------------------------------------------------------------------------
# Qdrant URL and API key
# QDRANT_URL=http://localhost:6333
# QDRANT_API_KEY=
# Pinecone API key
# PINECONE_API_KEY=
# -----------------------------------------------------------------------------
# Chrome Binary (Apple Silicon)
# -----------------------------------------------------------------------------
# Hero's bundled Chrome 139 binary isn't available for arm64.
# Point to your system Chrome:
# CHROME_139_BIN=/Applications/Google Chrome.app/Contents/MacOS/Google Chrome