Support kind=llm profiles (instruction/schema), optional multi-event posts via #eN URLs, and recover stale running/queued parse jobs after worker crashes. Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
# Telegram (CP workers)
|
|
TELEGRAM_API_ID=12345678
|
|
TELEGRAM_API_HASH=your_api_hash_here
|
|
TELEGRAM_SESSION_PATH=/data/telegram.session
|
|
|
|
# Optional Telegram proxy fallback (when VPN tab is off)
|
|
# Prefer Admin UI → VPN (subscription / socks5 / http).
|
|
# TELEGRAM_PROXY_TYPE=socks5
|
|
# TELEGRAM_PROXY_HOST=127.0.0.1
|
|
# TELEGRAM_PROXY_PORT=1080
|
|
# TELEGRAM_PROXY_USER=
|
|
# TELEGRAM_PROXY_PASS=
|
|
|
|
# Platform internals
|
|
INTERNAL_TOKEN=dev-internal-token
|
|
TEST_PI_API_KEY=test-pi-api-key-change-me
|
|
|
|
# Admin UI login (public map stays open; /admin and object writes need JWT)
|
|
ADMIN_USER=admin
|
|
ADMIN_PASSWORD=change-me
|
|
ADMIN_JWT_SECRET=change-me-jwt-secret
|
|
|
|
# DeepSeek LLM:
|
|
# - extract_mode=llm on CP workers (Telegram unstructured + Crawl4AI)
|
|
# - Generate профиля парсера на ca-api (один раз; runtime — только правила)
|
|
# DEEPSEEK_API_KEY=sk-...
|
|
# DEEPSEEK_BASE_URL=https://api.deepseek.com
|
|
# DEEPSEEK_MODEL=deepseek-chat
|
|
|
|
# Recover parse jobs stuck in running/queued after worker crash (seconds, default 900)
|
|
# STALE_JOB_SECONDS=900
|
|
|
|
# CP adapter workers (set in docker-compose; override locally if needed)
|
|
# ENABLED_ADAPTERS=telegram
|
|
# WORKER_FAMILIES=telegram
|