From 4d0f6dfa343e8d379d5e602965e9826380a85829 Mon Sep 17 00:00:00 2001 From: scott sundahl Date: Wed, 7 Jan 2026 14:27:36 -0700 Subject: [PATCH] proper status response from healthcheck --- tools/reverse-proxy/nginx.conf | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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 {