Skip to content
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

nixos: nginx.resolver.ipv6 defaults to true even if networking.enableIPv6 is false #368034

Open
Fuuzetsu opened this issue Dec 25, 2024 · 1 comment
Labels
0.kind: bug Something is broken

Comments

@Fuuzetsu
Copy link
Member

Fuuzetsu commented Dec 25, 2024

Describe the bug

nginx.resolver.ipv6 setting in nginx NixOS module is always set to true by default even if IPv6 is disabled on the networking level.

This then can give pretty cryptic and intermittent failures when using it for proxying or whatever else.

Steps To Reproduce

Steps to reproduce the behavior:

Set networking.enableIPv6 = false. Set something in services.nginx.resolver.addresses. Check the generated nginx config and note that it doesn't add ipv6=off to resolver line.

Expected behavior

It should probably ipv6=off automatically, especially as we already have the enableIPv6 value visible in the module and used for other stuff.

Metadata

I'm on

      url = "https://github.com/NixOS/nixpkgs/archive/5ae933ec0d684e382ee12971de262583524e4538.tar.gz";

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@Fuuzetsu Fuuzetsu added the 0.kind: bug Something is broken label Dec 25, 2024
@SuperSandro2000
Copy link
Member

#368055

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants