M
M
mystdeim2019-02-16 14:11:50
Nginx
mystdeim, 2019-02-16 14:11:50

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

2 answer(s)
S
Sergey Sokolov, 2019-02-16
@sergiks

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.

Or do you just want to make a regular web proxy to access the telegram web version - enter the address of your site, and get to web.telegram.org?

D
Dimonchik, 2019-02-16
@dimonchik2013

https://3proxy.ru/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question