mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 21:44:03 +03:00
Update README
This commit is contained in:
@@ -38,6 +38,18 @@ mtg is an implementation in golang which is intended to be:
|
|||||||
* **No management WebUI**
|
* **No management WebUI**
|
||||||
This is an implementation of simple lightweight proxy. I won't do that.
|
This is an implementation of simple lightweight proxy. I won't do that.
|
||||||
|
|
||||||
|
This proxy supports 2 modes of work: direct connection to Telegram and
|
||||||
|
promoted channel mode. If you do not need promoted channels, I would
|
||||||
|
recommend you to go with direct mode: this is way more robust.
|
||||||
|
|
||||||
|
To run proxy in direct mode, all you need to do is just provide a
|
||||||
|
secret. If you do not provide ADTag as a second parameter, promoted
|
||||||
|
channels mode won't be activated.
|
||||||
|
|
||||||
|
To get promoted channel, please contact
|
||||||
|
[@MTProxybot|https://t.me/MTProxybot] and provide generated adtag as a
|
||||||
|
second parameter.
|
||||||
|
|
||||||
|
|
||||||
# How to build
|
# How to build
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ docker run \
|
|||||||
--sysctl net.ipv4.tcp_congestion_control=bbr \
|
--sysctl net.ipv4.tcp_congestion_control=bbr \
|
||||||
--sysctl net.ipv4.tcp_fastopen=3 \
|
--sysctl net.ipv4.tcp_fastopen=3 \
|
||||||
--sysctl net.ipv4.tcp_fin_timeout=30 \
|
--sysctl net.ipv4.tcp_fin_timeout=30 \
|
||||||
--sysctl net.ipv4.tcp_keepalive_time=1200 \
|
|
||||||
--sysctl net.ipv4.tcp_max_syn_backlog=4096 \
|
--sysctl net.ipv4.tcp_max_syn_backlog=4096 \
|
||||||
--sysctl net.ipv4.tcp_max_tw_buckets=5000 \
|
--sysctl net.ipv4.tcp_max_tw_buckets=5000 \
|
||||||
--sysctl net.ipv4.tcp_mtu_probing=1 \
|
--sysctl net.ipv4.tcp_mtu_probing=1 \
|
||||||
|
|||||||
Reference in New Issue
Block a user