mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
fix: healthcheck and GITLAB_HTTPS=true
Follow redirects Allow connections to SSL sites without certs
This commit is contained in:
parent
c250de7579
commit
31325c1007
@ -431,8 +431,9 @@ EOF
|
||||
cat > /usr/local/sbin/healthcheck <<EOF
|
||||
#!/bin/bash
|
||||
url=http://localhost/-/liveness
|
||||
curl -s \$url
|
||||
[[ "\$(curl -s -o /dev/null -I -w '%{http_code}' \$url)" == "200" ]]
|
||||
options=( '--insecure' '--location' '--silent' )
|
||||
curl "\${options[@]}" \$url
|
||||
[[ "\$(curl \${options[@]} -o /dev/null -I -w '%{http_code}' \$url)" == "200" ]]
|
||||
EOF
|
||||
chmod +x /usr/local/sbin/healthcheck
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user