Update nginx/nginx.conf

This commit is contained in:
Minecon724 2025-01-07 16:17:23 +01:00
parent e0a18be8ca
commit a6421b2bff

View file

@ -1,7 +1,7 @@
user nginx; user nginx;
worker_processes auto; worker_processes auto;
error_log /dev/null; # /var/log/nginx/error.log notice; error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid; pid /var/run/nginx.pid;
events { events {
@ -14,10 +14,12 @@ http {
default_type application/octet-stream; default_type application/octet-stream;
log_format main '$remote_user [$time_local] "$request" ' log_format main '$remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" ' '$status $body_bytes_sent bytes "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"'; '"$http_x_forwarded_for"';
# While I removed PII from the above log format, still better not logging
access_log /dev/null main; # /var/log/nginx/access.log main;
access_log /dev/null main;
server_tokens off; server_tokens off;