mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-02-23 16:19:53 -05:00
improve HTTP request logging
* add $upstream_cache_status * add '-$connection_requests' after $connection * enable subrequest logging $connection_requests makes it much easier to see connection reuse in the logs and also helps to understand subrequests.
This commit is contained in:
parent
937be19e46
commit
32a33ba94f
@ -72,11 +72,12 @@ http {
|
||||
# maintained by certbot-ocsp-fetcher
|
||||
ssl_stapling_file ocsp-cache/matrix.grapheneos.org.der;
|
||||
|
||||
log_format main '$connection $remote_addr $remote_user $ssl_protocol $server_protocol '
|
||||
log_format main '$connection-$connection_requests $remote_addr $remote_user $ssl_protocol $server_protocol '
|
||||
'$host $request_method "$request_uri" $status $request_length $body_bytes_sent/$bytes_sent '
|
||||
'$request_time $upstream_connect_time/$upstream_header_time/$upstream_response_time '
|
||||
'"$http_referer" "$http_user_agent"';
|
||||
'$upstream_cache_status "$http_referer" "$http_user_agent"';
|
||||
access_log syslog:server=unix:/dev/log,nohostname main;
|
||||
log_subrequest on;
|
||||
log_not_found off;
|
||||
|
||||
gzip_proxied any;
|
||||
|
Loading…
x
Reference in New Issue
Block a user