A
A
Anton2020-02-20 15:06:50
Nginx
Anton, 2020-02-20 15:06:50

How to configure VPS to bypass RKN in requests to Telegram api?

I want to make a bot in Telegram in php that will interact with the site.
How to bypass the RKN ban?

There is a VPS in Russia and the cheapest VPS abroad on which SOCKS5 is raised.
Do I understand correctly that on the VPS where I have sites, I must configure NGINX by entering a rule for processing requests to api.telegram?

And what to set up on a foreign vps, as I understand it, SOCKS5 will not work and apparently you also need to raise nginx?
Tell me the course of action.

spoiler
PS: Брал под сайты vps во Франции от OVH и очень сильно разочаровался - долгий отклик, большой пинг, редко, но всё же просто недоступны сайты. Потому выбрал VPS в России.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-02-20
@anton99zel

server {
        listen 80 default_server;
        server_name _;

        location / {
        proxy_pass https://api.telegram.org;
        }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question