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
Ignore entries starting with "data:" #32
Ignore entries starting with "data:" #32
Conversation
Since version 1.15.10, Nginx supports the loading of SSL certificates and secret keys from variables. From the documentation: "The value data:$variable can be specified instead of the file, which loads a certificate from a variable without using intermediate files." For example, this feature allows using an empty certificate for the "default" server: https://serverfault.com/a/1044022/111986
Hi Benoit, This was an unknown feature of Nginx for me! //Jonas |
I didn't try, but I'm pretty sure Nginx will panic if the variable is undefined. I don't think you can (nor should) do anything about it. |
Some small things I will add here as a notes for myself in the future:
Source 1: https://serverfault.com/a/956167 |
Some entries allow a couple of special directives beyond
If we implement this change we should perhaps include the |
Indeed, I didn't know about the Note: the sentence "using variables implies that a certificate will be loaded for each SSL handshake" only applies to file paths that include a variable, which is not the same as a |
Nice! Thanks for the contribution, and informing me about this pretty neat feature :) |
You're welcome, Jonas. |
Hi @valdergallo,
Thank you very much for this awesome project.
I had a problem with my conf files containing
data:$variable
entries: they were renamed tomyfile.conf.nokey
.This Pull Request adds a test to ignore files starting with
data:
I included some explanation in the commit message:
Best regards,
Benoit