-
Notifications
You must be signed in to change notification settings - Fork 347
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
https: T6734: Nginx - disable software version reporting #4273
Conversation
👍 |
Simplify nginx config file interface-definition
It doesn't look like the smoke test failure was related to my feature. |
CI integration ❌ failed! Details
|
@@ -18,6 +18,8 @@ server { | |||
listen [::]:{{ port }} ssl; | |||
{% endif %} | |||
|
|||
server_tokens {{ 'off' if no_server_version is vyos_defined else 'on' }}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong indention
@dmbaturin I wonder if we should not always disable this. I see no reason in exposing the webservers version information. |
Interesting question. Maybe it should indeed be the default at least. |
Change summary
Added new option under "service https" called "no-server-version". This affects the "server_tokens" option in the nginx default site configuration.
Types of changes
Related Task(s)
Related PR(s)
How to test / Smoketest result
By default or when this option is not set, the HTTP response headers look like this:
When the option is set, the HTTP response headers look like this:
Checklist: