From 166a98bb7b314d5fde3e70d651215257f0c7364f Mon Sep 17 00:00:00 2001 From: admin1350 Date: Sun, 22 Mar 2026 10:59:56 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20mtproto.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mtproto.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/mtproto.md b/mtproto.md index ceb846c..ac80311 100644 --- a/mtproto.md +++ b/mtproto.md @@ -12,6 +12,27 @@ docker run -d \ nineseconds/mtg:2 \ simple-run -n 1.1.1.1 -i prefer-ipv4 0.0.0.0:443 ee5d4504a8802be40de729445e45ec644c6e657874636c6f75642e732e70726f7830372d74672e7275 ``` + +docker-compose.yml +``` +version: '3.8' + +services: + mtproto-proxy: + image: nineseconds/mtg:2 + container_name: mtproto-proxy + restart: unless-stopped + ports: + - "443:443" + command: + - simple-run + - -n + - 1.1.1.1 + - -i + - prefer-ipv4 + - 0.0.0.0:443 + - ee5d4504a8802be40de729445e45ec644c6e657874636c6f75642e732e70726f7830372d74672e72 +``` ### 3.Настройка sni + балансировка в roundrobin файл `/etc/haproxy/haproxy.cfg`: ```haproxy