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