Attached is a simple patch to proxy_pass to an IPv6 upstream.
It currently works only with a variable. proxy_pass ::1; wont’ work for
but this will :
set $addr “[::1]:8080”;
You also need to add --with-ipv6 to your configure line.