From c812bda08f4e90499587867fcf698559f51e7707 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Mon, 17 Mar 2025 21:47:21 +0100 Subject: [PATCH] fix(docker): disable log for healthcheck requests --- lighttpd.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lighttpd.conf b/lighttpd.conf index 2965450..e892bb9 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -12,3 +12,7 @@ server.follow-symlink = "enable" server.feature-flags += ( "server.clock-jump-restart" => 0 ) server.max-request-field-size = 65535 accesslog.filename = "/dev/fd/3" + +# Avoid logging docker healthcheck request +$HTTP["remote-ip"] == "127.0.0.1" { accesslog.filename = "" } +$HTTP["remote-ip"] == "[::1]" { accesslog.filename = "" }