-
-
Notifications
You must be signed in to change notification settings - Fork 209
Add dualstack nginx listen #427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Jérôme Foray <jerome.foray@bedrockstreaming.com>
|
We are also hitting this issue. This makes it work in all situations, ipv4-only, ipv6-only, and dualstack. Any chance this might get some attention? |
nscuro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Meroje!
|
Unfortunately this change breaks my IPv4-only installation... Is there a way to make this configurable? |
|
@schmidi In what sense is it breaking? I was under the assumption that it should work for both IPv4 and IPv6. |
When I try to start the container on a server without IPv6 I get the following message: |
This is a regression introduced in DependencyTrack#427. The original NGINX image has a mechanism to enable IPv6 when it's available: https://github.com/nginxinc/docker-nginx-unprivileged/blob/1.25.2/entrypoint/10-listen-on-ipv6-by-default.sh However, that mechanism is disabled when the `default.conf` file was modified (which we did). This commit copies the entrypoint script from the base image, and modifies it, to make it work with our custom `default.conf`. Fixes DependencyTrack#427 (comment) Signed-off-by: nscuro <nscuro@protonmail.com>
|
@nscuro Thanks for the fast reply and the fix. |
This is a regression introduced in DependencyTrack#427. The original NGINX image has a mechanism to enable IPv6 when it's available: https://github.com/nginxinc/docker-nginx-unprivileged/blob/1.25.2/entrypoint/10-listen-on-ipv6-by-default.sh However, that mechanism is disabled when the `default.conf` file was modified (which we did). This commit copies the entrypoint script from the base image, and modifies it, to make it work with our custom `default.conf`. Fixes DependencyTrack#427 (comment) Signed-off-by: nscuro <nscuro@protonmail.com>
|
Well sorry about that, it never failed me but I guess I usually let ipv6 be un-routable rather than disabling it outright. Thanks for putting in in a better fix ❤️ |
Description
When testing over an ipv6-only stack I noticed the frontend would not be reachable, as nginx listens on ipv4 only by default. This change adds the second required directive.
Addressed Issue
Additional Details
Checklist