-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.env.example
More file actions
43 lines (38 loc) · 2.25 KB
/
Copy path.env.example
File metadata and controls
43 lines (38 loc) · 2.25 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
# ──────────────────────────────────────────────────────────────────
# OpenTor — Environment Configuration
# Copy this to .env and fill in your values
# ──────────────────────────────────────────────────────────────────
# ── Tor ───────────────────────────────────────────────────────────
TOR_SOCKS_HOST=127.0.0.1
TOR_SOCKS_PORT=9050
TOR_CONTROL_HOST=127.0.0.1
TOR_CONTROL_PORT=9051
# TOR_CONTROL_PASSWORD=your_password_here # only if HashedControlPassword in torrc
# TOR_DATA_DIR=/tmp/tor_data # path to Tor DataDirectory (cookie auth)
TOR_TIMEOUT=45
# ── OpenTor settings ──────────────────────────────────────────────
# Max characters of scraped content to return
OPENTOR_MAX_CHARS=8000
# TTL for the fetch() result cache in seconds (0 = disable)
OPENTOR_CACHE_TTL=600
# TTL for search() result cache in seconds
OPENTOR_SEARCH_CACHE_TTL=1800
# TTL for engine health check cache in seconds
OPENTOR_ENGINE_CACHE_TTL=3600
# SQLite database path (relative to OpenTor root)
OPENTOR_DB_PATH=database/opentor.db
# ── TorPool (optional — multiple Tor circuits for higher throughput) ──
# Number of simultaneous Tor circuits (0 = disabled, use single Tor)
OPENTOR_POOL_SIZE=0
# Base SOCKS port for TorPool circuits
OPENTOR_POOL_BASE_PORT=9060
# ── LLM Provider (optional — needed only for external LLM analysis) ──
# Set LLM_PROVIDER=opencode to use the orchestrator's own LLM (default, no key needed)
# Or use external: openai | anthropic | gemini | ollama | llamacpp
LLM_PROVIDER=opencode
# OPENAI_API_KEY=sk-...
# ANTHROPIC_API_KEY=sk-ant-...
# GEMINI_API_KEY=AIza...
# OLLAMA_MODEL=llama3.2
# ── Watch/Alert mode ──────────────────────────────────────────────
OPENTOR_WATCH_INTERVAL=6