Files
monitoring-tg/.env.example
2026-06-04 16:10:13 +03:00

48 lines
1.2 KiB
Plaintext

# Telegram MTProto credentials — get from https://my.telegram.org
TG_API_ID=
TG_API_HASH=
TG_PHONE=
# --- ONE OF THE TWO BELOW IS REQUIRED ---
# Preferred (no volumes, k8s-friendly): get the string by running
# docker compose run --rm -it app python -m parser_bot.auth
# It prints `TG_SESSION_STRING=...` — paste that line here.
TG_SESSION_STRING=
# Fallback (file-based): only used if TG_SESSION_STRING is empty.
# Requires mounting ./data/session as a volume.
TG_SESSION_PATH=/data/session/parser.session
# Postgres
POSTGRES_USER=parser
POSTGRES_PASSWORD=parser
POSTGRES_DB=parser
POSTGRES_HOST=db
POSTGRES_PORT=5432
# Polling
POLL_INTERVAL_SECONDS=60
POLL_HISTORY_LIMIT=50
# Go public API
API_HOST=0.0.0.0
API_PORT=8000
PUBLIC_BASE_PATH=/api/monitoring-tg
PYTHON_BASE_URL=http://127.0.0.1:8001
# Media (downloaded photos / small videos / docs from parsed messages)
MEDIA_DIR=/data/media
MEDIA_MAX_BYTES=20971520
# OpenAI-compatible LLM endpoint used by the Go classifier.
LLM_ENABLED=true
LLM_BASE_URL=http://10.2.3.5:8002
LLM_API_KEY=
LLM_MODEL=qwen2.5-14b
LLM_TIMEOUT_SECONDS=120
LLM_MAX_TOKENS=600
LLM_MIN_TEXT_LENGTH=20
LLM_CLASSIFIER_OWNER=go
LLM_CLASSIFY_INTERVAL_SECONDS=20
LLM_CLASSIFY_BATCH_SIZE=5