Skip to content

Commit

Permalink
Log response time in nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
zodern committed Oct 4, 2024
1 parent fba96ba commit 1e18967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/proxy/assets/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ gzip_types text/plain text/css application/javascript application/json applicati

log_format vhost '$host $remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
'"$http_referer" "$http_user_agent" $request_time $upstream_response_time $pipe';

access_log off;

Expand Down Expand Up @@ -362,4 +362,4 @@ server {
{{ end }}

{{ end }}
{{ end }}
{{ end }}

0 comments on commit 1e18967

Please sign in to comment.