1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 03:38:52 +03:00
This commit is contained in:
Anton Afanasyeu
2026-06-11 22:13:27 +02:00
parent ed23afb9e8
commit dfaf9ab24d
2 changed files with 20 additions and 7 deletions

View File

@@ -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