docker icon indicating copy to clipboard operation
docker copied to clipboard

Issue with the Dual Stack with nginx.

Open k2patel opened this issue 7 months ago • 1 comments

#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 `

k2patel avatar Jun 29 '25 20:06 k2patel

added PR with fixes.. please feel free to comment and merge as see fit.

Ref # https://github.com/nginx/docker-nginx/issues/394

k2patel avatar Jun 29 '25 21:06 k2patel

no longer using wallabag since i migrated to readeck.. thanks.

k2patel avatar Sep 09 '25 00:09 k2patel