Persist settings in CA, expose /admin/vpn and /internal/vpn, and route Telegram (and optional web/nlp) traffic through mihomo SOCKS when enabled. Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
1.0 KiB
Bash
33 lines
1.0 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
|
|
|
|
# CP adapter workers (set in docker-compose; override locally if needed)
|
|
# ENABLED_ADAPTERS=telegram
|
|
# WORKER_FAMILIES=telegram
|