Skip to content

Ignore server_names when they look like nginx variables #335

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

Merged

Conversation

Grimeh
Copy link
Contributor

@Grimeh Grimeh commented Jul 24, 2025

This adds a check for nginx variables when parsing server names, to make it obvious that this isn't supported.

I ran a few tests locally with the =~ \$(.+) check and it looks good, but I'm rusty when it comes to bash scripting so please let me know if it's not quite right.

Fixes #333.

@JonasAlfredsson JonasAlfredsson merged commit 7eb8c12 into JonasAlfredsson:master Jul 24, 2025
1 check passed
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.

No warning when using nginx variables as server name (server_name $my_variable;)
2 participants