nginx/nginx-s3-gateway

IPv6 enabler in /docker-entrypoint.d is broken

Opened this issue · 2 comments

Bug Overview

The script does this in the end:

enable ipv6 on default.conf listen sockets

sed -i -E 's,listen 80;,listen 80;\n listen [::]:80;,' /$DEFAULT_CONF_FILE

However, in the default.conf there is no listen directive at all and thus nothing is being replaced.

What in needs to do is a) check if there is a listener and b) if there isn't, add listen [::]:80; to it

Expected Behavior

Enable IPv6

Steps to Reproduce the Bug

Start the container image ghcr.io/nginxinc/nginx-s3-gateway/nginx-oss-s3-gateway:latest

Environment Details

any

Additional Context

No response

still an issue, I just ran into this

Worth noting maybe that the recent update (release notes?) removed the ipv6 enabler script but id not fix ipv6 functionality