Files
please-pay-me/context/2026-09-13_05-06-42_fix-proxy-timeout-host-net.md
2026-09-21 04:06:43 +03:00

18 lines
869 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-09-13 — Fix: ProxyTimeout к 172.17.0.1
## Симптом
Контейнер: `Proxy connection timed out` к `socks5://172.17.0.1:10808`.
## Причина
В bridge/Portainer-сети хост `172.17.0.1:10808` часто недоступен (Xray на 127.0.0.1 и/или другая docker-сеть).
## Исправление
- `docker-compose.yml`: `network_mode: host` + `PROXY_URL=socks5://127.0.0.1:10808`
- Убран захардкоженный `BOT_TOKEN` из compose (был в логах/файле — нужен revoke у BotFather)
- Xray можно оставить на `127.0.0.1` (безопаснее, чем 0.0.0.0)
## Действия на сервере
1. BotFather → revoke/перевыпустить токен
2. В `.env`: новый токен + `PROXY_URL=socks5://127.0.0.1:10808`
3. `docker compose up -d --build`