Answer the question
In order to leave comments, you need to log in
How to configure nginx to proxy telegram?
There is a vps, I want to deploy an http proxy for the telegram client, where do I need to make a proxy pass?
MTProto is not suitable, since ports 80 and 443 are already occupied on the server, and they are needed
Answer the question
In order to leave comments, you need to log in
Telegram supports two types of proxies: MTProto proxy and SOCKS5.
HTTP proxy is not mentioned.
for MTProto proxy you can assign any port - not only 443:
./mtproto-proxy -u nobody -p 8888 -H 443 -S <secret> --aes-pwd proxy-secret proxy-multi.conf -M 1
... where:
nobody is the username. 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-proxy. Like wget localhost:8888/stats. You can only get this stat via loopback.
<secret> is the secret generated at step 3. Also you can set multiple secrets: -S <secret1> -S <secret2>.
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.
web.telegram.org
?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question