Skip to content

Instantly share code, notes, and snippets.

@agustim
Created March 23, 2024 09:54
Show Gist options
  • Save agustim/a4e345c1a704c6512bb24e07415d6bdc to your computer and use it in GitHub Desktop.
Save agustim/a4e345c1a704c6512bb24e07415d6bdc to your computer and use it in GitHub Desktop.
Install own MTProxy
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