fix: Telegram-бот через прокси (xray на host:10808)

- telegram_bot.py: HTTPXRequest с proxy из HTTPS_PROXY env
- docker-compose.yml: host.docker.internal:10808, extra_hosts gateway

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-03-22 18:05:42 +10:00
co-authored by Claude Opus 4.6
parent 00d3a7cefa
commit c429e48603
2 changed files with 15 additions and 1 deletions
+5
View File
@@ -6,6 +6,11 @@ services:
container_name: smeta-bot
restart: unless-stopped
env_file: .env
environment:
- HTTPS_PROXY=http://host.docker.internal:10808
- HTTP_PROXY=http://host.docker.internal:10808
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./resources.json:/app/resources.json:ro
- ./data:/app/data:ro