Skip to content

mhshahin/MTProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published