Files
Pulse/docker-healthcheck.sh
rcourtman 3435a80503 fix: Docker healthcheck fails with HTTPS enabled
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
2025-12-26 18:18:16 +00:00

11 lines
420 B
Bash

#!/bin/sh
# Docker health check script for Pulse
# Automatically uses HTTPS when HTTPS_ENABLED=true
if [ "$HTTPS_ENABLED" = "true" ] || [ "$HTTPS_ENABLED" = "1" ]; then
# Use HTTPS with --no-check-certificate to handle self-signed certs
wget --no-verbose --tries=1 --spider --no-check-certificate https://localhost:7655 || exit 1
else
wget --no-verbose --tries=1 --spider http://localhost:7655 || exit 1
fi