Fast and simple to setup MTProto proxy written in Python.
git clone -b stable https://github.com/nfrelink/mtprotoproxy.git; cd mtprotoproxycp config.py.example config.pyand edit PORT, USERS and optionally an AD_TAG- (Docker users)
cp docker-compose.yml.example docker-compose.ymland tweak the ports/mounts as needed - (Bare-metal users)
pip install --no-cache-dir -r requirements.txt docker-compose up -d(or justpython3 mtprotoproxy.pyif you don't like Docker)- (optional, get a link to share the proxy)
docker-compose logs
To advertise a channel get a tag from @MTProxybot and put it to config.py.
The proxy performance should be enough to comfortably serve about 4 000 simultaneous users on the VDS instance with 1 CPU core and 1024MB RAM.
The proxy can be launched:
- with a custom config:
python3 mtprotoproxy.py [configfile] - several times, clients will be automaticaly balanced between instances
- with uvloop module to get an extra speed boost
- with runtime statistics exported to Prometheus