From 7fc8f74d0f43af30a060ce6ead7d28aad8aef462 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 3 Jan 2021 18:22:42 +0100 Subject: [PATCH] Improved the nginx config Signed-off-by: Janos SUTO --- contrib/webserver/piler-nginx.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/webserver/piler-nginx.conf b/contrib/webserver/piler-nginx.conf index c61c8523..737cc4f0 100644 --- a/contrib/webserver/piler-nginx.conf +++ b/contrib/webserver/piler-nginx.conf @@ -4,7 +4,13 @@ server { root /var/piler/www; - gzip on; + server_tokens off; + + add_header X-XSS-Protection "1; mode=block"; + add_header X-Content-Type-Options "nosniff"; + add_header Referrer-Policy "same-origin"; + + gzip on; gzip_types text/plain application/xml text/css; gzip_vary on;