mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-05 18:20:37 +01:00
update nginx log format to include response time
This commit is contained in:
parent
aa8edc5f15
commit
a2cfbc5519
@ -21,6 +21,12 @@ http {
|
|||||||
server ui:80;
|
server ui:80;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_format timed_combined '$$remote_addr - '
|
||||||
|
'"$$request" $$status $$body_bytes_sent '
|
||||||
|
'"$$http_referer" "$$http_user_agent" '
|
||||||
|
'$$request_time $$upstream_response_time $$pipe';
|
||||||
|
|
||||||
|
access_log /dev/stdout timed_combined;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
@ -21,6 +21,13 @@ http {
|
|||||||
server ui:80;
|
server ui:80;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_format timed_combined '$$remote_addr - '
|
||||||
|
'"$$request" $$status $$body_bytes_sent '
|
||||||
|
'"$$http_referer" "$$http_user_agent" '
|
||||||
|
'$$request_time $$upstream_response_time $$pipe';
|
||||||
|
|
||||||
|
access_log /dev/stdout timed_combined;
|
||||||
|
|
||||||
include /etc/nginx/conf.d/*.server.conf;
|
include /etc/nginx/conf.d/*.server.conf;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
Loading…
Reference in New Issue
Block a user