feat(web): Updates log formatter.

This commit is contained in:
damencho
2026-03-03 12:03:46 -06:00
committed by Дамян Минков
parent 4629890cc9
commit f95a6b62a0

View File

@@ -40,8 +40,23 @@ http {
## ##
# Logging Settings # Logging Settings
## ##
# Matches any URI or Referer with some matches and redacts the whole
# query string. log_format and map must be at the http context level.
map $request_uri $loggable_uri {
~^(?P<path>[^?]*)\?.*(?:jwt|token)= "${path}?[params_redacted]";
default $request_uri;
}
access_log /dev/stdout; map $http_referer $loggable_referer {
~^(?P<url>[^?]*)\?.*(?:jwt|token)= "${url}?[params_redacted]";
default $http_referer;
}
log_format jitsi_log '$remote_addr - $remote_user [$time_local] '
'"$request_method $loggable_uri $server_protocol" '
'$status $body_bytes_sent "$loggable_referer" "$http_user_agent"';
access_log /dev/stdout jitsi_log;
error_log /dev/stderr; error_log /dev/stderr;
## ##