Files
hassio-addons/filebrowser/rootfs/etc
alexbelgium 278818970f filebrowser: fix healthcheck protocol detection with ssl enabled
The HEALTHCHECK branched on "$ssl", but that variable is never present
in the container environment: Supervisor only injects the environment:
block from config.yaml (FB_BASEURL, PGID, PUID) plus TZ/SUPERVISOR_TOKEN.
The ssl option lives in /data/options.json and is read via bashio inside
cont-init, and HEALTHCHECK CMD is spawned by dockerd, so no export from
that shell can ever reach it.

The test was therefore always false and the healthcheck kept probing
http:// against the TLS listener, producing the

  http: TLS handshake error ... client sent an HTTP request to an HTTPS server

spam reported in #2881.

Write the resolved protocol to /run/health_protocol from 99-run.sh and
read it back in the healthcheck, matching the pattern already used by
the gitea addon. Also corrects the 127.0.01 typo (missing octet).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-26 07:57:09 +02:00
..