From 3b68e0a5061186c057a18084ebc69165c1dd1ee3 Mon Sep 17 00:00:00 2001 From: Raymon Mens Date: Sun, 12 Dec 2021 20:52:26 +0100 Subject: [PATCH] Hide server_tokens (#101) * Hide server_tokens To comply with security best practices * Also turn off server_tokens on cuda Nginx config --- nginx-cuda.conf | 1 + nginx.conf | 1 + 2 files changed, 2 insertions(+) diff --git a/nginx-cuda.conf b/nginx-cuda.conf index d336b44..cba1e20 100644 --- a/nginx-cuda.conf +++ b/nginx-cuda.conf @@ -35,6 +35,7 @@ http { root /www/static; sendfile off; tcp_nopush on; + server_tokens off; access_log /dev/stdout combined; # Uncomment these lines to enable SSL. diff --git a/nginx.conf b/nginx.conf index 9797103..36ce267 100644 --- a/nginx.conf +++ b/nginx.conf @@ -44,6 +44,7 @@ http { root /www/static; sendfile off; tcp_nopush on; + server_tokens off; access_log /dev/stdout combined; # Uncomment these lines to enable SSL.