diff --git a/tools/reverse-proxy/nginx.conf b/tools/reverse-proxy/nginx.conf index dd7420a..ac20cb4 100644 --- a/tools/reverse-proxy/nginx.conf +++ b/tools/reverse-proxy/nginx.conf @@ -12,16 +12,8 @@ http { include /etc/nginx/mime.types; default_type application/octet-stream; - # Map status to result label - map $status $result { - ~^[23] "success"; - ~^4 "client_error"; - ~^5 "server_error"; - default "unknown"; - } - - # Log format - includes IP, timestamp, method, URL, status, result, referrer - log_format main '$remote_addr [$time_local] $request_method "$request_uri" $status $result "$http_referer"'; + # Log format - includes IP, timestamp, method, URL, status, referrer + log_format main '$remote_addr [$time_local] $request_method "$request_uri" status=$status "$http_referer"'; # Map to identify errors (4xx/5xx) map $status $is_error {