From 19f9d5783108ad1a67e61d98e26347e1674730fc Mon Sep 17 00:00:00 2001 From: Fascinated Date: Fri, 7 Jul 2023 23:39:52 +0100 Subject: [PATCH] change logging in nginx to not show ip --- docker/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/nginx.conf b/docker/nginx.conf index a3a1e68..48b4467 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -38,6 +38,10 @@ http { client_max_body_size 500M; # Will get replaced by the environment variable MAX_UPLOAD_SIZE + log_format main '[$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + location /upload.php { try_files $uri =404;