mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-17 16:07:40 +01:00
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
11 lines
420 B
Bash
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
|