mirror of
https://github.com/germondai/trawl.git
synced 2026-08-17 12:11:23 +02:00
58 lines
1.8 KiB
Bash
58 lines
1.8 KiB
Bash
# API
|
|
# HTTP API port.
|
|
PORT=8191
|
|
|
|
# Browser pool
|
|
# Number of warm browser instances.
|
|
BROWSER_POOL_SIZE=1
|
|
# Time to wait for a free browser before rejecting a request.
|
|
BROWSER_ACQUIRE_TIMEOUT_MS=15000
|
|
# Recycle a browser after this many temporary challenge contexts. Set 0 to disable.
|
|
BROWSER_RECYCLE_AFTER_CONTEXTS=8
|
|
# Maximum Firefox content processes per browser.
|
|
BROWSER_CONTENT_PROCESSES=2
|
|
# Optional Chrome executable override.
|
|
CHROME_EXECUTABLE=
|
|
|
|
# Sessions
|
|
# Redis stores solved cookies and browser sessions.
|
|
REDIS_URL=redis://localhost:6379
|
|
# Lifetime of cached sessions in seconds.
|
|
SESSION_TTL_SECONDS=3600
|
|
|
|
# Upstream proxies
|
|
# Tier 3 datacenter proxy: HTTP, authenticated HTTP, or SOCKS5.
|
|
# Examples:
|
|
# PROXY_URL=http://proxy.example.com:8080
|
|
# PROXY_URL=http://user:pass@proxy.example.com:8080
|
|
# PROXY_URL=socks5://proxy.example.com:1080
|
|
# Separate multiple endpoints with commas to create a pool.
|
|
PROXY_URL=
|
|
# Optional file with one proxy URL per line.
|
|
PROXY_LIST_FILE=
|
|
# Tier 4 residential proxy. Uses the same URL and pool formats.
|
|
RESIDENTIAL_PROXY_URL=
|
|
# Optional file with one residential proxy URL per line.
|
|
RESIDENTIAL_PROXY_LIST_FILE=
|
|
|
|
# HTTP/HTTPS challenge-bypassing proxy
|
|
# Enables the general proxy listener.
|
|
MITM_PROXY_ENABLED=false
|
|
# Proxy address and port. Use 127.0.0.1 for local-only access.
|
|
MITM_PROXY_HOST=0.0.0.0
|
|
MITM_PROXY_PORT=8192
|
|
# Persistent directory for the generated CA certificate and key.
|
|
MITM_PROXY_CA_DIR=/data/proxy-ca
|
|
# Highest allowed escalation tier. Leave empty to allow Tier 4.
|
|
MITM_PROXY_MAX_TIER=
|
|
# Logs proxied requests. Errors are always logged.
|
|
MITM_PROXY_DEBUG=false
|
|
|
|
# CAPTCHA audio
|
|
# Optional Whisper-compatible speech-to-text endpoint.
|
|
STT_URL=
|
|
# Optional API key sent to the speech-to-text endpoint.
|
|
STT_API_KEY=
|
|
# Optional ffmpeg executable override used for audio conversion.
|
|
FFMPEG_PATH=
|