fix: use host network and restore web chat records

This commit is contained in:
ngfchl
2026-07-06 19:44:23 +08:00
parent 251b926b6f
commit 04781f144c
7 changed files with 329 additions and 40 deletions
+2 -2
View File
@@ -6,14 +6,14 @@ TG_CHAT_ID=-100xxxxxxxxxx
# 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
# Docker Compose 使用 host 网络,会覆盖为:postgres://user_eNPcQS:${POSTGRES_PASSWORD}@127.0.0.1:15432/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
# Docker Compose 使用 host 网络,会覆盖为:http://127.0.0.1:11434
OLLAMA_MODEL=qwen3:8b
# Proxy