From 802d935be32c46d01db13b2676b4fd104c557510 Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Tue, 24 Dec 2024 03:25:03 +0600 Subject: [PATCH] =?UTF-8?q?cha2524222fvdf=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/nginx/nginx.conf | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index 56199ec..8918c89 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -8,14 +8,16 @@ events { } http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - - 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 + include /etc/nginx/mime.types; + default_type application/octet-stream; + + log_format main '$remote_addr - $remote_user [$time_local] ' + '"$request" $status $body_bytes_sent ' + '"$http_referer" "$http_user_agent"'; + + 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