Ver código fonte

Adding in ability to disable server_tokens, defaulting to on (previous behaviour)

Russell Clare 8 anos atrás
pai
commit
2fffc382a4
2 arquivos alterados com 3 adições e 0 exclusões
  1. 2 0
      defaults/main.yml
  2. 1 0
      templates/nginx.conf.j2

+ 2 - 0
defaults/main.yml

@@ -26,6 +26,8 @@ nginx_tcp_nodelay: "on"
 nginx_keepalive_timeout: "65"
 nginx_keepalive_requests: "100"
 
+nginx_server_tokens: "on"
+
 nginx_client_max_body_size: "64m"
 
 nginx_server_names_hash_bucket_size: "64"

+ 1 - 0
templates/nginx.conf.j2

@@ -35,6 +35,7 @@ http {
     keepalive_timeout  {{ nginx_keepalive_timeout }};
     keepalive_requests {{ nginx_keepalive_requests }};
 
+    server_tokens {{ nginx_server_tokens }};
     #gzip  on;
 
 {% if nginx_proxy_cache_path %}