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

feat(nginx): Add support for IPv6 #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cogk
Copy link

@cogk cogk commented Jun 28, 2024

Add IPv6 listen directives to Nginx configuration templates

I believe that agent services don't listen on IPv6 by default. This PR attempts to fix this issue by adding IPv6 specific lines to the Nginx config templates.

listen 80; 
listen [::]:80;  # this line was missing

listen 127.0.0.1:80;
listen [::1]:80;  # this line was missing

Deployment notes

agent setup nginx seems to be needed to update the configuration on all server types, unless another event updates it.
AAAA records should be added after making the server accept IPv6 requests.


References

https://serverfault.com/questions/638367/do-you-need-separate-ipv4-and-ipv6-listen-directives-in-nginx/638370#638370
https://serverfault.com/questions/512054/globally-setting-ipv6only-off/512213#512213
https://stackoverflow.com/questions/40189084/what-is-ipv6-for-localhost-and-0-0-0-0/40189197#40189197
https://docs.aws.amazon.com/en_us/lightsail/latest/userguide/amazon-lightsail-configure-ipv6-on-nginx.html#configure-ipv6-nginx

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant