Skip to content

🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!

Suppress the nginx version banner (CFG-08)

Omega (QA)2c479373a1c8
diff --git a/nginx.conf b/nginx.conf
index 15af59f..80dd386 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -6,6 +6,11 @@ server {
root /var/www/html;
index index.html;
+ # Suppress the nginx version number in error pages and the Server
+ # header (CFG-08). Valid in the server context; this file is
+ # included as the default server block.
+ server_tokens off;
+
# Send nginx errors to stderr so they appear in `docker logs`
# alongside the app output; access logs stay in their file.
error_log /dev/stderr warn;