Merge pull request #2904 from alexbelgium/fix/filebrowser-healthcheck-ssl

filebrowser: fix healthcheck protocol detection with ssl enabled
This commit is contained in:
Alexandre
2026-07-26 08:02:24 +02:00
committed by GitHub
4 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
## 2.63.18.5 (26-07-2026)
- Fixed healthcheck log spam when ssl is enabled (#2881)
## 2.63.18.4 (22-07-2026)
- Minor bugs fixed
## 2.63.18.3 (22-07-2026)

View File

@@ -134,4 +134,4 @@ HEALTHCHECK \
--retries=5 \
--start-period=30s \
--timeout=25s \
CMD if [ "$ssl" = "true" ]; then curl -A "HealthCheck: Docker/1.0" -s -f -k https://127.0.01:${HEALTH_PORT}${HEALTH_URL}; else curl -A "HealthCheck: Docker/1.0" -s -f http://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}/; fi
CMD curl -A "HealthCheck: Docker/1.0" -s -f -k "$(cat /run/health_protocol 2>/dev/null || echo http)://127.0.0.1:${HEALTH_PORT}${HEALTH_URL}/" >/dev/null 2>&1 || exit 1

View File

@@ -126,4 +126,4 @@ schema:
slug: filebrowser
udev: true
url: https://github.com/alexbelgium/hassio-addons
version: "2.63.18.4"
version: "2.63.18.5"

View File

@@ -51,6 +51,10 @@ if bashio::config.true 'ssl'; then
ADDON_PROTOCOL=https
fi
# Expose the protocol to the docker HEALTHCHECK, which runs outside this
# shell and therefore cannot read the addon options
echo -n "${ADDON_PROTOCOL}" > /run/health_protocol
#port=$(bashio::addon.port 80)
ingress_port=$(bashio::addon.ingress_port)
ingress_interface=$(bashio::addon.ip_address)