From 0352cd247acde0b5db3e81a53e5f02bfbe50f309 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Fri, 7 Jul 2023 23:49:22 +0100 Subject: [PATCH] actually use the log formatter --- docker/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index 3106cd4..69bbfe1 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -3,13 +3,13 @@ events { } http { - access_log /dev/stdout; # Log access to stdout - error_log /dev/stdout; # Log errors to stdout - # Log format log_format main '[$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /dev/stdout main; # Log access to stdout + error_log /dev/stdout; # Log errors to stdout include mime.types; # Include the mime types file default_type application/octet-stream; # Default type