Skip to content

NVR with realtime local object detection for IP cameras

Add request_time and upstream_response_time to nginx log (#20307)

Josh Hawkins8430fbc70526
diff --git a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf
index c855fb9265..32099771dd 100644
--- a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf
+++ b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf
@@ -17,7 +17,9 @@ http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
+ '"$http_user_agent" "$http_x_forwarded_for" '
+ 'request_time="$request_time" upstream_response_time="$upstream_response_time"';
+
access_log /dev/stdout main;