Files
mtprotoproxy/README.md

35 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2018-06-03 23:14:11 +05:00
# Async MTProto Proxy #
2018-05-27 15:12:17 +05:00
2019-09-19 00:08:20 +05:00
Fast and simple to setup MTProto proxy written in Python.
2018-05-27 15:12:17 +05:00
2018-06-03 23:14:11 +05:00
## Starting Up ##
2018-05-27 15:12:17 +05:00
2018-06-15 12:15:18 +05:00
1. `git clone -b stable https://github.com/alexbers/mtprotoproxy.git; cd mtprotoproxy`
2018-06-03 23:14:11 +05:00
2. *(optional, recommended)* edit *config.py*, set **PORT**, **USERS** and **AD_TAG**
2019-08-19 19:16:36 +05:00
3. `docker-compose up -d` (or just `python3 mtprotoproxy.py` if you don't like Docker)
2019-08-21 02:03:55 +05:00
4. *(optional, get a link to share the proxy)* `docker-compose logs`
2018-06-03 23:14:11 +05:00
2019-08-21 03:06:20 +05:00
![Demo](https://alexbers.com/mtprotoproxy/install_demo_v2.gif)
2019-08-21 02:05:57 +05:00
2018-06-03 23:17:00 +05:00
## Channel Advertising ##
2018-06-03 23:14:11 +05:00
2019-08-21 02:03:55 +05:00
To advertise a channel get a tag from **@MTProxybot** and put it to *config.py*.
2018-06-15 12:08:20 +05:00
## Performance ##
The proxy performance should be enough to comfortably serve about 4 000 simultaneous users on
2018-06-27 18:25:40 +05:00
the VDS instance with 1 CPU core and 1024MB RAM.
2019-12-14 14:55:10 +05:00
## More Instructions ##
- [Running without Docker](https://github.com/alexbers/mtprotoproxy/wiki/Running-Without-Docker)
- [Optimization and fine tuning](https://github.com/alexbers/mtprotoproxy/wiki/Optimization-and-Fine-Tuning)
2018-06-27 18:25:40 +05:00
## Advanced Usage ##
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
2019-09-19 00:08:20 +05:00
- with runtime statistics exported to [Prometheus](https://prometheus.io/)