We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfe7677 commit 065dd7fCopy full SHA for 065dd7f
docker-entrypoint.sh
@@ -22,6 +22,7 @@ fi
22
export RESOLVERS=$(awk '$1 == "nameserver" {print $2}' ORS=' ' /etc/resolv.conf | sed 's/ *$//g')
23
if [ "x$RESOLVERS" = "x" ]; then
24
echo "Warning: unable to determine DNS resolvers for nginx" >&2
25
+ unset RESOLVERS
26
fi
27
28
# If the user has run the default command and the socket doesn't exist, fail
nginx.tmpl
@@ -58,7 +58,7 @@ log_format vhost '$host $remote_addr - $remote_user [$time_local] '
58
59
access_log off;
60
61
-{{ if ne $.Env.RESOLVERS "" }}
+{{ if $.Env.RESOLVERS }}
62
resolver {{ $.Env.RESOLVERS }};
63
{{ end }}
64
0 commit comments