Skip to content

Commit 38be108

Browse files
Gaibhnekkimurak
authored andcommitted
health check: use https only when https enabled with non-self signed cert
1 parent ac9e1fe commit 38be108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/runtime/functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ generate_healthcheck_script() {
18551855
# configure healthcheck script
18561856
## https://docs.gitlab.com/ee/user/admin_area/monitoring/health_check.html
18571857
local HEALTHCHECK_PROTOCOL="http"
1858-
if [[ "${GITLAB_HTTPS}" == true ]]; then
1858+
if [[ "${GITLAB_HTTPS}" == true && "${SSL_SELF_SIGNED}" == false ]]; then
18591859
HEALTHCHECK_PROTOCOL="${HEALTHCHECK_PROTOCOL}s"
18601860
fi
18611861
cat > /usr/local/sbin/healthcheck <<EOF

0 commit comments

Comments
 (0)