feat: rebuild tg spam guard v2 architecture
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
# Telegram
|
||||
TG_BOT_TOKEN=your_telegram_bot_token
|
||||
TG_CHAT_ID=-100xxxxxxxxxx
|
||||
|
||||
# PostgreSQL
|
||||
# Tortoise ORM 使用 postgres:// scheme,不是 postgresql://
|
||||
# 宿主机/本地运行用外部地址:
|
||||
DATABASE_URL=postgres://user:password@192.168.123.5:15432/tg-spam-guard
|
||||
# Docker Compose 中会覆盖为:postgres://user_eNPcQS:${POSTGRES_PASSWORD}@1Panel-postgresql-KS6e:5432/tg-spam-guard
|
||||
# 生产环境请在 .env 中设置真实密码,不要提交 .env
|
||||
POSTGRES_PASSWORD=your_postgres_password
|
||||
|
||||
# Ollama
|
||||
# 宿主机/本地运行:
|
||||
OLLAMA_URL=http://127.0.0.1:11434
|
||||
# Docker Compose 中会覆盖为:http://host.docker.internal:11434
|
||||
OLLAMA_MODEL=qwen3:8b
|
||||
|
||||
# Proxy
|
||||
PROXY_URL=http://192.168.123.10:11055
|
||||
|
||||
# Web
|
||||
WEB_PORT=8766
|
||||
SITE_URL=https://ptools.fun
|
||||
|
||||
# Harvest / account binding
|
||||
HARVEST_SERVER_URL=https://ptools.fun
|
||||
|
||||
# Bot 行为
|
||||
# 逗号分隔,作为机器人超级管理员补充名单
|
||||
ADMIN_USER_IDS=5418812283
|
||||
BAN_DURATION_MINUTES=2
|
||||
AUTO_DELETE_SECONDS=60
|
||||
VERIFY_TIMEOUT_SECONDS=300
|
||||
VERIFY_MAX_ATTEMPTS=3
|
||||
NEW_MEMBER_RESTRICT_MINUTES=10
|
||||
RATE_LIMIT_MESSAGES=5
|
||||
RATE_LIMIT_WINDOW=30
|
||||
NIGHT_MODE_START=23:00
|
||||
NIGHT_MODE_END=08:00
|
||||
Reference in New Issue
Block a user