File tree 3 files changed +9
-5
lines changed
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
2
2
3
3
# Override files
4
4
COPY 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() {
351
351
gitlab_configure_monitoring () {
352
352
echo " Configuring gitlab::monitoring..."
353
353
354
+ if [ " ${GITLAB_MONITORING_IP_WHITELIST} " == " " ]; then
355
+ exec_as_git sed -i " /{{GITLAB_MONITORING_IP_WHITELIST}}/d" ${GITLAB_CONFIG}
356
+ fi
357
+
354
358
update_template ${GITLAB_CONFIG} \
355
359
GITLAB_MONITORING_UNICORN_SAMPLER_INTERVAL \
356
360
GITLAB_MONITORING_IP_WHITELIST \
@@ -1832,13 +1836,13 @@ generate_healthcheck_script() {
1832
1836
# configure healthcheck script
1833
1837
# # https://docs.gitlab.com/ee/user/admin_area/monitoring/health_check.html
1834
1838
local HEALTHCHECK_PROTOCOL=" http"
1835
- if [[ " ${GITLAB_HTTPS} " == true ]]; then
1839
+ if [[ " ${GITLAB_HTTPS} " == true && " ${SSL_SELF_SIGNED} " == false ]]; then
1836
1840
HEALTHCHECK_PROTOCOL=" ${HEALTHCHECK_PROTOCOL} s"
1837
1841
fi
1838
1842
cat > /usr/local/sbin/healthcheck << EOF
1839
1843
#!/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' )
1842
1846
curl "\$ {options[@]}" \$ url
1843
1847
[[ "\$ (curl \$ {options[@]} -o /dev/null -I -w '%{http_code}' \$ url)" == "200" ]]
1844
1848
EOF
You can’t perform that action at this time.
0 commit comments