The healthcheck was hardcoded to use HTTP, which fails when HTTPS_ENABLED=true. Now uses a script that detects the protocol and uses --no-check-certificate for self-signed certs. Related to #922