From faea5be0f1bae37f650d2aef7357d71f58b6e07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=91?= =?UTF-8?q?=D1=83=D1=80=D0=B4=D0=B8=D0=BD?= Date: Mon, 27 Jan 2025 12:57:41 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D0=B8=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=81=D0=B0=20=D0=B2=20access.log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 3498317..0d5cd44 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,6 +14,10 @@ events { include /etc/nginx/conf-enabled.d/*.conf; http { + log_format req_time '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for" $request_time'; + access_log /var/log/nginx/access.log req_time; proxy_temp_path /var/spool/nginx/tmp/proxy; fastcgi_temp_path /var/spool/nginx/tmp/fastcgi; client_body_temp_path /var/spool/nginx/tmp/client; From 25649c792d0917fb978ce407143a2ed609c134b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=91?= =?UTF-8?q?=D1=83=D1=80=D0=B4=D0=B8=D0=BD?= Date: Mon, 27 Jan 2025 12:57:41 +0300 Subject: [PATCH 2/2] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D0=B8=20=D0=B7=D0=B0=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D1=81=D0=B0=20=D0=B2=20access.log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 3498317..0d5cd44 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -14,6 +14,10 @@ events { include /etc/nginx/conf-enabled.d/*.conf; http { + log_format req_time '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for" $request_time'; + access_log /var/log/nginx/access.log req_time; proxy_temp_path /var/spool/nginx/tmp/proxy; fastcgi_temp_path /var/spool/nginx/tmp/fastcgi; client_body_temp_path /var/spool/nginx/tmp/client;