Add server_tokens (#173) (#175)

This commit is contained in:
Alexander Maslov 2019-10-25 12:16:03 +03:00 committed by Alessandro Fael Garcia
parent a236c73af8
commit cca5dbb37d
4 changed files with 7 additions and 0 deletions

View File

@ -355,6 +355,7 @@ nginx_main_template:
cache: false cache: false
rate_limit: false rate_limit: false
keyval: false keyval: false
#server_tokens: "off"
http_global_autoindex: false http_global_autoindex: false
#http_custom_options: [] #http_custom_options: []
stream_enable: false stream_enable: false

View File

@ -166,6 +166,7 @@ nginx_main_template:
cache: false cache: false
rate_limit: false rate_limit: false
keyval: false keyval: false
#server_tokens: "off"
http_global_autoindex: false http_global_autoindex: false
#http_custom_options: [] #http_custom_options: []
stream_enable: false stream_enable: false

View File

@ -32,6 +32,7 @@
cache: false cache: false
rate_limit: false rate_limit: false
keyval: false keyval: false
server_tokens: "off"
stream_enable: true stream_enable: true
http_global_autoindex: false http_global_autoindex: false

View File

@ -73,6 +73,10 @@ http {
sendfile on; sendfile on;
#tcp_nopush on; #tcp_nopush on;
{% if nginx_main_template.http_settings.server_tokens is defined and nginx_main_template.http_settings.server_tokens | length %}
server_tokens {{ nginx_main_template.http_settings.server_tokens }};
{% endif %}
keepalive_timeout {{ nginx_main_template.http_settings.keepalive_timeout }}; keepalive_timeout {{ nginx_main_template.http_settings.keepalive_timeout }};
#gzip on; #gzip on;