File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1- 17.2.1
1+ 17.3.4
Original file line number Diff line number Diff line change 1- FROM ghcr.io/rtxux/ gitlab:17.2.1
1+ FROM sameersbn/ gitlab:17.3.4
22
33# Override files
44COPY assets/runtime/config/gitlabhq/gitlab.yml ${GITLAB_RUNTIME_DIR}/config/gitlabhq/gitlab.yml
Original file line number Diff line number Diff line change @@ -351,6 +351,10 @@ gitlab_configure_gitaly() {
351351gitlab_configure_monitoring () {
352352 echo " Configuring gitlab::monitoring..."
353353
354+ if [ " ${GITLAB_MONITORING_IP_WHITELIST} " == " " ]; then
355+ exec_as_git sed -i " /{{GITLAB_MONITORING_IP_WHITELIST}}/d" ${GITLAB_CONFIG}
356+ fi
357+
354358 update_template ${GITLAB_CONFIG} \
355359 GITLAB_MONITORING_UNICORN_SAMPLER_INTERVAL \
356360 GITLAB_MONITORING_IP_WHITELIST \
@@ -1832,13 +1836,13 @@ generate_healthcheck_script() {
18321836 # configure healthcheck script
18331837 # # https://docs.gitlab.com/ee/user/admin_area/monitoring/health_check.html
18341838 local HEALTHCHECK_PROTOCOL=" http"
1835- if [[ " ${GITLAB_HTTPS} " == true ]]; then
1839+ if [[ " ${GITLAB_HTTPS} " == true && " ${SSL_SELF_SIGNED} " == false ]]; then
18361840 HEALTHCHECK_PROTOCOL=" ${HEALTHCHECK_PROTOCOL} s"
18371841 fi
18381842cat > /usr/local/sbin/healthcheck << EOF
18391843#!/bin/bash
1840- url=${HEALTHCHECK_PROTOCOL} ://localhost ${GITLAB_RELATIVE_URL_ROOT} /-/liveness
1841- options=( '--insecure' '--location' '-- silent' )
1844+ url=${HEALTHCHECK_PROTOCOL} ://127.0.0.1 ${GITLAB_RELATIVE_URL_ROOT} /-/liveness
1845+ options=( '--insecure' '--silent' )
18421846curl "\$ {options[@]}" \$ url
18431847[[ "\$ (curl \$ {options[@]} -o /dev/null -I -w '%{http_code}' \$ url)" == "200" ]]
18441848EOF
You can’t perform that action at this time.
0 commit comments