010's Introduction
to build, simply run 'make'. Your binary will be objs/bin/mtproto-proxy to run mtproto-proxy: 1. Obtain a secret, used to connect to telegram servers. curl -s https://core.telegram.org/getProxySecret -o proxy-secret 2. Obtain current telegram configuration. It can change (occasionally), so we encourage you to update it once per day. curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf 3. Generate a secret to be used by users to connect to your proxy head -c 16 /dev/urandom | xxd -ps 4. Run mtproto-proxy mtproto-proxy -u nobody -p 8888 -H 443 -S <secret> --aes-pwd proxy-secret proxy-multi.conf -M 1 where: - nobody is the user name. mtproto-proxy calls setuid() to drop privilegies - 443 is the port, used by clients to connect to the proxy - 8888 is the local port. You can use it to get statistics from mtproto. Like wget localhost:8888/stats You can only get this stat via loopback - <secret> is the secret generated at step 3. - proxy-secret and proxy-multi.conf are obtained at steps 1 and 2 - 1 is the number of workers. You can increase the number of workers, if you have a powerful server - also feel free to check out other options using mtproto-proxy help 5. generate the link tg://proxy?server=SERVER_NAME&port=443&secret=SECRET 6. register your proxy with @MTProxybot on Telegram. 7. enjoy
010's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.