-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy path.env.example
More file actions
84 lines (60 loc) · 2.91 KB
/
.env.example
File metadata and controls
84 lines (60 loc) · 2.91 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
# =============================================================================
# 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)
# -----------------------------------------------------------------------------
# Proxy URL (e.g., http://user:pass@host:port)
# 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=
# -----------------------------------------------------------------------------
# Serverless Deployment (for Vercel/Lambda)
# -----------------------------------------------------------------------------
# WebSocket endpoint for remote browser (e.g., Browserless)
# BROWSER_WS_ENDPOINT=wss://chrome.browserless.io?token=...