Skip to content

Commit

Permalink
https: T6734: Nginx - disable software version reporting
Browse files Browse the repository at this point in the history
Simplify nginx config file interface-definition
  • Loading branch information
mwheeler1982 committed Jan 3, 2025
1 parent ac13da6 commit e9f5f60
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions data/templates/https/nginx.default.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ server {
listen [::]:{{ port }} ssl;
{% endif %}

{% if no_server_version is vyos_defined %}
server_tokens off;
{% else %}
server_tokens on;
{% endif %}
server_tokens {{ 'off' if no_server_version is vyos_defined else 'on' }};

server_name {{ hostname }};
root /srv/localui;
Expand Down

0 comments on commit e9f5f60

Please sign in to comment.