How to make a mirror for keyvalue.xyz?

Greetings to all, for a long time without any problems use the service https://keyvalue.xyz/, but at some point adblock started to block requests to this service.
There is a need of creating a "mirror", for example I have a server on the specified port by making inquiries, that they server went on this service, ie, that was not a normal 302 redirect, in this case I think adblock will block the request, although I could be wrong, in this case, you can use nginx to do the redirect, you need to check.

So, how can ubuntu server do the "mirror", with which it is possible to realize that if you come to POST, GET, DELETE, UPDATE queries, for example to port 6566 then they are automatically passed on to keyvalue, and then return the result?
June 8th 19 at 17:06
2 answers
June 8th 19 at 17:08
Solution
put nginx and do a proxy_pass https://keyvalue.xyz/;
put the certificate, which is surprising, insert any other address, it works, but it https://keyvalue.xyz/ does not work (( - jamie_Gra commented on June 8th 19 at 17:35
server {
 listen 80;
 listen 443;
 access_log /var/log/nginx/proxy.log;

 location / {
 proxy_pass <a href="https://api.keyvalue.xyz/;">https://api.keyvalue.xyz/;</a>
}
}


She did that and not working( - jamie_Gra commented on June 8th 19 at 17:11
And what exactly is not working? what errors, etc? - Violet_Wiso commented on June 8th 19 at 17:14
, Failed to start A high performance web server and a reverse proxy server. - jamie_Gra commented on June 8th 19 at 17:17
This error occurs if I add a subdomain server_name: api.example.com; and no server_name, no errors, but just does not work - jamie_Gra commented on June 8th 19 at 17:20
See the logs of nginx.

"but it does not work" is not a mistake. - Violet_Wiso commented on June 8th 19 at 17:23
,
server {
 listen 80;
 listen 443;
 server_name keyvalue.boostmail.ru;

 location / {
 proxy_pass <a href="https://api.keyvalue.xyz;">https://api.keyvalue.xyz;</a>
}
}


did so, on the face 502 Bad Gateway - jamie_Gra commented on June 8th 19 at 17:26
in access there is information about the inputs, and in the error log:
2018/02/01 14:49:41 [error] 9119#9119: *19 SSL_do_handshake() failed (SSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure) while SSL handshaking to upstream, client: 31.173.216.195, server: keyvalue.********.ru, request: "GET / HTTP/1.1", upstream: "https://104.31.81.22:443/", host: "keyvalue.*******.EN"


ie I have a main domain ssh certificate, but how does it affect subdomain???? - jamie_Gra commented on June 8th 19 at 17:29
you have not configured ssl on nginx
https://www.nginx.com/blog/free-certificates-lets-... - Violet_Wiso commented on June 8th 19 at 17:32
June 8th 19 at 17:10
Add new domain in server_name

Find more questions by tags ProxyNginxUbuntuNode.js