Feat: add panoramax to status page

This commit is contained in:
Pieter Vander Vennet 2024-09-30 16:49:01 +02:00
parent 4ee0467d6c
commit 9e9d5e80d8

View file

@ -93,6 +93,23 @@
})
})
}
{
services.push({
name: Constants.panoramax.url,
status: testDownload(Constants.panoramax.url + "/api").mapD((result) => {
if (result["success"]?.stac_version === "1.0.0") {
return "online"
}
if (result["error"]) {
return "offline"
} else {
return "degraded"
}
}),
message: simpleMessage(testDownload(Constants.panoramax.url + "/api"))
})
}
{
services.push({
name: Constants.GeoIpServer,