From 23a6b473ae0989e083d720a097119d77118daddf Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Fri, 11 Sep 2020 20:41:12 +0200 Subject: [PATCH] Disable logging and server tokens --- frontend/nginx-config/nginx.conf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/nginx-config/nginx.conf b/frontend/nginx-config/nginx.conf index 901dada..a8bfb5a 100644 --- a/frontend/nginx-config/nginx.conf +++ b/frontend/nginx-config/nginx.conf @@ -2,6 +2,7 @@ user nginx; worker_processes auto; error_log /var/log/nginx/error.log warn; + pid /var/run/nginx.pid; events { @@ -9,14 +10,12 @@ events { } http { + server_tokens off; + include /etc/nginx/mime.types; default_type application/octet-stream; - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; + access_log off; sendfile on; sendfile_max_chunk 1m;