Merge pull request #77 from aledbf/dns-resolver

Add support for IPV6 in dns resolvers
This commit is contained in:
Prashanth B 2017-01-01 20:21:52 -08:00 committed by GitHub
commit 5cdb8fe4fb
11 changed files with 156 additions and 19 deletions

View file

@ -85,10 +85,7 @@ http {
access_log /var/log/nginx/access.log upstreaminfo if=$loggable;
error_log /var/log/nginx/error.log {{ $cfg.ErrorLogLevel }};
{{ if not (empty $cfg.Resolver) }}# Custom dns resolver.
resolver {{ $cfg.Resolver }} valid=30s;
resolver_timeout 10s;
{{ end }}
{{ buildResolvers $cfg.Resolver }}
{{/* Whenever nginx proxies a request without a "Connection" header, the "Connection" header is set to "close" */}}
{{/* when making the target request. This means that you cannot simply use */}}