From 8ad2f46cc3e9cc53ca6af34a4c076e093a2dfb66 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Fri, 7 Jul 2023 23:44:07 +0100 Subject: [PATCH] move log formatter --- docker/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index bd6f8ce..8b1e09d 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -6,6 +6,10 @@ http { access_log /dev/stdout; error_log /dev/stdout; + log_format main '[$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + include mime.types; default_type application/octet-stream; @@ -38,10 +42,6 @@ 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;