mhshahin / MTProxy

Dockerfile for Telegram MTProxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MTProxy Docker

Dockerfile for Telegram MTProxy

Usage

  1. Run the image using the following command:
docker run -itd -p 9500:9500 mhshahin/mtproxy
  1. Run the MTProxy service inside the container using the following command:
docker exec $(docker ps | grep mtproxy | awk '{print $1}') pm2 start mtproxy.js -i max
  1. To get the Secret Key:
docker exec $(docker ps | grep mtproxy | awk '{print $1}') env | grep SECRET | cut -b 13-

Note:

If you wanna change the default Port and Secret, get the Dockerfile from the repository, change YOUR_PORT and YOUR_SECRET values inside it to your desired values, and then execute the following command:

docker build -t mhshahin/mtproxy .

and then proceed from step 1.

About

Dockerfile for Telegram MTProxy

License:MIT License


Languages

Language:Shell 54.1%Language:Dockerfile 45.9%