diff --git a/config/service/nginx/container/run-nginx b/config/service/nginx/container/run-nginx index a6001d1..72c35c8 100755 --- a/config/service/nginx/container/run-nginx +++ b/config/service/nginx/container/run-nginx @@ -1,7 +1,7 @@ #!/bin/sh # Set NGINX resolver from system-wide configuration. -awk '/^nameserver/ {printf "resolver %s;\n", $2; exit}' /etc/resolv.conf > /etc/nginx/resolver.conf +awk '/^nameserver/ {printf "resolver %s valid=60s ipv6=off;\n", $2; exit}' /etc/resolv.conf > /etc/nginx/resolver.conf # Start NGINX as foreground process. nginx -g 'daemon off;'