diff options
author | Harald Welte <laforge@osmocom.org> | 2022-06-10 05:58:26 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-06-10 05:58:26 +0200 |
commit | a4d04deea7ea0e7c31819af51e3c66158b62b74a (patch) | |
tree | 9bfb3c25b3a5a045ab3177679480203bf14d989f | |
parent | 5ed22876a9c4e59d612a53f818d86dc2c9a885a8 (diff) |
cgit: more verbose logging format in access.log
Change-Id: Iee684c8732410971719044b281a4e810fe0f7945
-rw-r--r-- | cgit/config/nginx.conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cgit/config/nginx.conf b/cgit/config/nginx.conf index dfd8d0b..8c3595c 100644 --- a/cgit/config/nginx.conf +++ b/cgit/config/nginx.conf @@ -22,3 +22,10 @@ server { fastcgi_read_timeout 120s; } } + +log_format timed_combined '$remote_addr - $remote_user [$time_local] ' + '"$request" $status $body_bytes_sent ' + '"$http_referer" "$http_user_agent" ' + '$request_time $upstream_response_time $pipe'; + +access_log /var/log/nginx/access.log timed_combined; |