mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2025-12-08 17:36:24 +00:00
health check: use https only when https enabled with non-self signed cert
This commit is contained in:
parent
ac9e1fe14d
commit
38be108bc0
@ -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 <<EOF
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user