Answer the question
In order to leave comments, you need to log in
How to proxy with the limit_req directive through the stream nginx module (official guide), i.e. TCP Proxy?
You need to limit requests for VK. VK requests via https. Requests go from the server to nginh,
server {
listen 8044;
ssl on;
ssl_certificate /etc/ssl/certs/myssl.crt;
ssl_certificate_key /etc/ssl/private/myssl.key;
location /route/{
limit_req zone=mylimit burst=5000;
proxy_pass https://api.vk.com/;
}
location /pu/{
limit_req zone=mylimit burst=5000;
proxy_pass https://pu.vk.com/;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question