Created
March 23, 2024 09:54
-
-
Save agustim/a4e345c1a704c6512bb24e07415d6bdc to your computer and use it in GitHub Desktop.
Install own MTProxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/Dofamin/MTProxy-Docker.git | |
cd MTProxy-Docker | |
echo "SECRET=$(head -c 16 /dev/urandom| xxd -ps)" >> .env | |
echo "WORKERS=1" >> .env | |
echo "MTPROTO_REPO_URL=https://github.com/TelegramMessenger/MTProxy" >> .env | |
echo "TZ=Europe/Andorra" >> .env | |
docker compose up -d | |
. .env | |
IP_GW=$(curl -s https://ifconfig.me/) | |
echo "Share this link:" | |
echo "https://t.me/proxy?server=$IP_GW&port=8443&secret=$SECRET" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment