Enhance Dockerfile to build and include a new HTTP API service (mtproxy_checkerd) alongside the existing CLI tool (mtproxy_checker). Update README and documentation to reflect the new service and its usage, including environment variables and Docker run instructions.
Publish mtproxy_checker Docker image / test (push) Successful in 11s
Publish mtproxy_checker Docker image / build-and-push (push) Successful in 56s

This commit is contained in:
Denozordec
2026-04-11 00:50:57 +07:00
parent 4905c06b9b
commit 5a66f0f2e8
8 changed files with 482 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
# HTTP API: список tg:// в файле, периодическая проверка, JSON по GET.
# Запуск: docker compose -f docker-compose.api.yaml up --build
services:
mtproxy-checkerd:
build: .
image: mtproxy_checker:local
entrypoint: ["/usr/local/bin/mtproxy_checkerd"]
ports:
- "8080:8080"
volumes:
- ./proxies.txt:/data/proxies.txt:ro
environment:
MTPROXY_LIST_FILE: /data/proxies.txt
MTPROXY_CHECK_INTERVAL: 5m
MTPROXY_HTTP_ADDR: ":8080"
MTPROXY_CHECK_TIMEOUT: 15s
MTPROXY_DC_ID: "2"
# Опционально: только перечисленные IP/CIDR (иначе не задавайте переменную)
# MTPROXY_ALLOWED_IPS: "172.17.0.0/16,127.0.0.1"