From 38be108bc083cee041e616d49fc4f6c4108e1ff0 Mon Sep 17 00:00:00 2001 From: Joerg Stoever Date: Fri, 20 Sep 2024 12:03:31 +0900 Subject: [PATCH] health check: use https only when https enabled with non-self signed cert --- assets/runtime/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/runtime/functions b/assets/runtime/functions index a9a778c5..2a9cfe0b 100644 --- a/assets/runtime/functions +++ b/assets/runtime/functions @@ -1855,7 +1855,7 @@ generate_healthcheck_script() { # configure healthcheck script ## https://docs.gitlab.com/ee/user/admin_area/monitoring/health_check.html local HEALTHCHECK_PROTOCOL="http" - if [[ "${GITLAB_HTTPS}" == true ]]; then + if [[ "${GITLAB_HTTPS}" == true && "${SSL_SELF_SIGNED}" == false ]]; then HEALTHCHECK_PROTOCOL="${HEALTHCHECK_PROTOCOL}s" fi cat > /usr/local/sbin/healthcheck <