Merge pull request #2546 from pikasTech/fix/2541-public-edge-status-path
fix(cicd): 修正 public-edge status 健康路径
This commit is contained in:
@@ -906,7 +906,7 @@ sites_rc=0; dns_rc=0; probe_index=0
|
||||
for item in ${probeItems}; do
|
||||
probe_index=$((probe_index + 1))
|
||||
(
|
||||
host="${"${item%%|*}"}"; rest="${"${item#*|}"}"; path="/${"${rest%%|*}"}"; path="/${"${path#/}"}"; expected="${"${rest#*|}"}"
|
||||
host="${"${item%%|*}"}"; rest="${"${item#*|}"}"; path="${"${rest%%|*}"}"; path="/${"${path#/}"}"; expected="${"${rest#*|}"}"
|
||||
getent ahostsv4 "$host" | awk '{print $1}' | grep -Fxq "$expected" || : >"/tmp/public-edge-dns-$$-$probe_index.failed"
|
||||
curl --noproxy '*' -fsS --connect-timeout 3 --max-time 10 --resolve "$host:${target.listener.httpsPort}:127.0.0.1" "https://$host$path" >/dev/null || : >"/tmp/public-edge-site-$$-$probe_index.failed"
|
||||
) &
|
||||
|
||||
Reference in New Issue
Block a user