mirror of
git://f0xx.org/android_cast
synced 2026-07-29 03:38:52 +03:00
be
This commit is contained in:
@@ -11,6 +11,8 @@ HUB="${HUB_BASE:-${PUBLIC}/app/androidcast_project/}"
|
||||
BUILD="${BUILD_BASE:-${PUBLIC}/app/androidcast_project/build/}"
|
||||
OTA="${OTA_CHANNEL:-${PUBLIC}/v0/ota/channel/stable.json}"
|
||||
|
||||
SHORTENER="${URL_SHORTENER_BASE:-https://s.f0xx.org}"
|
||||
|
||||
fail=0
|
||||
ok() { echo "OK $*"; }
|
||||
bad() { echo "FAIL $*"; fail=1; }
|
||||
@@ -71,6 +73,16 @@ else
|
||||
bad "ota $OTA HTTP $code"
|
||||
fi
|
||||
|
||||
# URL shortener (opt-in vhost — warn until PHP + MariaDB live)
|
||||
code="$(http_code "$SHORTENER/api/v1/health")"
|
||||
if [[ "$code" == "200" ]]; then
|
||||
ok "url-shortener $SHORTENER/api/v1/health HTTP $code"
|
||||
elif [[ "$code" =~ ^(000|502|503|504)$ ]]; then
|
||||
note "url-shortener $SHORTENER/api/v1/health HTTP $code — nginx up? sync backend/url-shortener + php-fpm"
|
||||
else
|
||||
note "url-shortener $SHORTENER/api/v1/health HTTP $code (stub expects 200 when docroot synced)"
|
||||
fi
|
||||
|
||||
# Device APIs (no session) — 403 on public edge is OK if upload/heartbeat work
|
||||
code="$(http_code "$CRASHES/api/diag.php")"
|
||||
if [[ "$code" == "200" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user