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

nginx snippets don't allow ipv6 #415

Open
creeper123123321 opened this issue Nov 15, 2021 · 4 comments
Open

nginx snippets don't allow ipv6 #415

creeper123123321 opened this issue Nov 15, 2021 · 4 comments

Comments

@creeper123123321
Copy link

i was having a problem with the copy-pasted configuration caused by a missing Listen [::]:...

@creeper123123321 creeper123123321 changed the title nginx snippets don't to ipv6 nginx snippets don't allow ipv6 Nov 15, 2021
@Software-Noob
Copy link
Member

What copy pasted Nginx snippet? Our web server configuration for Nginx doesn't specify ipv6 or ipv4. It specifies ports and Nginx would listen on both ipv4 and ipv6 if they are available.

@creeper123123321
Copy link
Author

creeper123123321 commented Nov 15, 2021

https://github.com/pterodactyl/documentation/blob/master/.snippets/webservers/nginx.conf#L10
i needed to add a listen [::]:443 ssl http2; line because it was falling into the default server:

        listen 443 ssl default_server;
        listen [::]:443 ssl default_server;

@Software-Noob
Copy link
Member

Software-Noob commented Nov 15, 2021

This is because you have other server blocks on the same web server.

Forcing ipv6 would cause Nginx to fail for users that don't have ipv6:

socket() [::]:80 failed (97: Address family not supported by protocol).

We either ignore this, or add a note regarding ipv6. However, notes are usually ignored. I would need to look more into the possible issues ipv6 might cause

@PadowYT2
Copy link
Contributor

Perhaps just add 2 more tabs, 2 tabs for IPv4 SSL and non-SSL, 2 tabs for IPv6 SSL and non-SSL

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

No branches or pull requests

3 participants