File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1642,9 +1642,13 @@ update_ssh_listen_port() {
1642
1642
generate_healthcheck_script () {
1643
1643
# configure healthcheck script
1644
1644
# # https://docs.gitlab.com/ee/user/admin_area/monitoring/health_check.html
1645
+ local HEALTHCHECK_PROTOCOL=" http"
1646
+ if [[ " ${GITLAB_HTTPS} " == true ]]; then
1647
+ HEALTHCHECK_PROTOCOL=" ${HEALTHCHECK_PROTOCOL} s"
1648
+ fi
1645
1649
cat > /usr/local/sbin/healthcheck << EOF
1646
1650
#!/bin/bash
1647
- url=http ://localhost${GITLAB_RELATIVE_URL_ROOT} /-/liveness
1651
+ url=${HEALTHCHECK_PROTOCOL} ://localhost${GITLAB_RELATIVE_URL_ROOT} /-/liveness
1648
1652
options=( '--insecure' '--location' '--silent' )
1649
1653
curl "\$ {options[@]}" \$ url
1650
1654
[[ "\$ (curl \$ {options[@]} -o /dev/null -I -w '%{http_code}' \$ url)" == "200" ]]
You can’t perform that action at this time.
0 commit comments