Issue with the Dual Stack with nginx.
#440
PR does not actually fix the issue, the issue when kernel doesn't know anything about ipv6 when disabled. try setting ipv6.disable=1 in kernel parameters during boot.
so given option fails too.
as there is no net.ipv6.conf.all.disable_ipv6 or /proc/net/if_inet6
From what i gathered from Documentation, If IPv6 is available, this binds both IPv4 and IPv6 on the same socket: but nothing about if there is no IPv6. Which matches the behavior.
server { listen [::]:80 ipv6only=off; ... }
I believe the safest way is to use entrypoint.sh
Convert nginx.conf to Template. ` server { listen 80; {{IPV6_LISTEN}}
... `
Update entrypoint.sh `
Check if IPv6 is enabled
if sysctl net.ipv6.conf.all.disable_ipv6 2>/dev/null | grep -q ' = 0' &&
[ -s /proc/net/if_inet6 ]; then
echo "IPv6 is ENABLED"
IPV6_LISTEN="listen [::]:80 ipv6only=off;"
else
echo "IPv6 is DISABLED"
IPV6_LISTEN=""
fi
`
added PR with fixes.. please feel free to comment and merge as see fit.
Ref # https://github.com/nginx/docker-nginx/issues/394
no longer using wallabag since i migrated to readeck.. thanks.