From 042c44f0126b615af85043d6b1c9e6d64329fcff Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:23:39 +0000 Subject: [PATCH 1/2] fix: suppress healthcheck log spam in filebrowser quantum addon Add a dedicated nginx health endpoint on 127.0.0.1:3001 with access_log off that returns 200 at /health. Update HEALTHCHECK to verify both that the filebrowser process is running (pgrep) and nginx is serving (curl to health endpoint), avoiding direct HTTP requests to filebrowser that caused log spam every 5 seconds. --- filebrowser_quantum/Dockerfile | 6 +++--- filebrowser_quantum/rootfs/etc/nginx/servers/health.conf | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 filebrowser_quantum/rootfs/etc/nginx/servers/health.conf diff --git a/filebrowser_quantum/Dockerfile b/filebrowser_quantum/Dockerfile index a21b6902e9..0af99910ac 100644 --- a/filebrowser_quantum/Dockerfile +++ b/filebrowser_quantum/Dockerfile @@ -131,11 +131,11 @@ RUN \ mv /etc/nginx/nginx.conf.new /etc/nginx/nginx.conf; \ fi -ENV HEALTH_PORT="8080" \ - HEALTH_URL="" +ENV HEALTH_PORT="3001" \ + HEALTH_URL="/health" HEALTHCHECK \ --interval=5s \ --retries=5 \ --start-period=30s \ --timeout=25s \ - CMD curl -A "HealthCheck: Docker/1.0" -s -f "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || curl -k --fail "https://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1 + CMD pgrep -x filebrowser &>/dev/null || exit 1; curl -A "HealthCheck: Docker/1.0" -s -f "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1 diff --git a/filebrowser_quantum/rootfs/etc/nginx/servers/health.conf b/filebrowser_quantum/rootfs/etc/nginx/servers/health.conf new file mode 100644 index 0000000000..d39caa1fb0 --- /dev/null +++ b/filebrowser_quantum/rootfs/etc/nginx/servers/health.conf @@ -0,0 +1,8 @@ +server { + listen 127.0.0.1:3001; + access_log off; + + location /health { + return 200 'OK'; + } +} From c9070c848a764c35dc741f3d574a7423c9f397c7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 3 Jun 2026 22:57:58 +0200 Subject: [PATCH 2/2] Update Dockerfile --- filebrowser_quantum/Dockerfile | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/filebrowser_quantum/Dockerfile b/filebrowser_quantum/Dockerfile index 0af99910ac..5af712163e 100644 --- a/filebrowser_quantum/Dockerfile +++ b/filebrowser_quantum/Dockerfile @@ -115,27 +115,4 @@ LABEL \ # 6 Healthcheck # ################# -# Avoid spamming logs -# hadolint ignore=SC2016 -RUN \ - # Handle Apache configuration - if [ -d /etc/apache2/sites-available ]; then \ - for file in /etc/apache2/sites-*/*.conf; do \ - sed -i '/ /etc/nginx/nginx.conf.new && \ - mv /etc/nginx/nginx.conf.new /etc/nginx/nginx.conf; \ - fi - -ENV HEALTH_PORT="3001" \ - HEALTH_URL="/health" -HEALTHCHECK \ - --interval=5s \ - --retries=5 \ - --start-period=30s \ - --timeout=25s \ - CMD pgrep -x filebrowser &>/dev/null || exit 1; curl -A "HealthCheck: Docker/1.0" -s -f "http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}" &>/dev/null || exit 1 +# Upstream