Selaa lähdekoodia

Disable nginx server_tokens in http context (#6873)

Patrik Kernstock 2 viikkoa sitten
vanhempi
sitoutus
7b29c1f304
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      data/conf/nginx/templates/nginx.conf.j2

+ 1 - 0
data/conf/nginx/templates/nginx.conf.j2

@@ -13,6 +13,7 @@ events {
 http {
     include /etc/nginx/mime.types;
     default_type  application/octet-stream;
+    server_tokens off;
 
     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                       '$status $body_bytes_sent "$http_referer" '