From b9e5c932ce4bbded9730c1c40170151d80905105 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalski Date: Fri, 5 Feb 2021 07:46:49 +0100 Subject: [PATCH] Add support for IPv6 (#76) --- entrypoint.sh | 2 +- nginx.conf | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index ccabc97..1be0abe 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,7 +4,7 @@ set -Eeuo pipefail trap "echo TRAPed signal" HUP INT QUIT TERM #configure nginx DNS settings to match host, why must we do that nginx? -conf="resolver $(/usr/bin/awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf) ipv6=off; # Avoid ipv6 addresses for now" +conf="resolver $(/usr/bin/awk 'BEGIN{ORS=" "} $1=="nameserver" {print $2}' /etc/resolv.conf);" [ "$conf" = "resolver ;" ] && echo "no nameservers found" && exit 0 confpath=/etc/nginx/resolvers.conf if [ ! -e $confpath ] || [ "$conf" != "$(cat $confpath)" ] diff --git a/nginx.conf b/nginx.conf index 42cf0dc..897628e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -14,7 +14,7 @@ http { map_hash_bucket_size 128; include /etc/nginx/mime.types; default_type application/octet-stream; - + # Include nginx timeout configs include /etc/nginx/nginx.timeouts.config.conf; @@ -133,6 +133,7 @@ http { # The proxy director layer, listens on 3128 server { listen 3128; + listen [::]:3128; server_name proxy_director_; # dont log the CONNECT proxy.