From 4121383f9b279fe8971a570baed77701cb13bb45 Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Tue, 24 Dec 2024 02:15:48 +0600 Subject: [PATCH] cha25 --- docker/nginx/nginx.conf | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index c79483b..e31693b 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -10,16 +10,14 @@ events { http { include /etc/nginx/mime.types; default_type application/octet-stream; - - # Basic log format - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - + + 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; - + sendfile on; keepalive_timeout 65; - + include /etc/nginx/conf.d/*.conf; } \ No newline at end of file