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] 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'; + } +}