Welcome! Log In Create A New Profile

Advanced

Re: Large latency increase when using a resolver for proxy_pass

March 03, 2017 04:53AM
Hi Maxim,
Thanks for the reply.

What about if we used a stream/tcp proxy_pass with resolver? Something like this:

resolver 8.8.8.8 8.8.4.4 ipv6=off;

stream {
server {
listen localhost:81;
set $upstream_host my.upstream-host.com;
proxy_pass $upstream_host:443;
}
}

server {
listen 80;
location ~ /api/ {
rewrite /api/(.*) /$1 break;
proxy_ssl_verify off;
proxy_pass https://localhost:81;
}
}

Would this work?
Thanks,
Max
Subject Author Posted

Large latency increase when using a resolver for proxy_pass

user384829 March 01, 2017 07:32AM

Re: Large latency increase when using a resolver for proxy_pass

Maxim Dounin March 01, 2017 07:46AM

Re: Large latency increase when using a resolver for proxy_pass

user384829 March 01, 2017 09:05AM

Re: Large latency increase when using a resolver for proxy_pass

Maxim Dounin March 01, 2017 10:08AM

Re: Large latency increase when using a resolver for proxy_pass

user384829 March 03, 2017 04:53AM

Re: Large latency increase when using a resolver for proxy_pass

Maxim Dounin March 03, 2017 07:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready