Merge branch 'master' into matt/sky-593-nginx-update-webportal-docker-compose
This commit is contained in:
commit
5bd7f9a946
|
@ -71,7 +71,7 @@ require("yargs/yargs")(process.argv.slice(2))
|
||||||
|
|
||||||
const entry = {
|
const entry = {
|
||||||
date: new Date().toISOString(),
|
date: new Date().toISOString(),
|
||||||
checks: (await Promise.all(checks.map((check) => new Promise(check)))).map(middleware),
|
checks: (await Promise.all(checks.map((check) => new Promise(check)))).filter(Boolean).map(middleware),
|
||||||
};
|
};
|
||||||
|
|
||||||
db.read() // read before writing to make sure no external changes are overwritten
|
db.read() // read before writing to make sure no external changes are overwritten
|
||||||
|
|
|
@ -122,8 +122,9 @@ async function registryWriteAndReadCheck(done) {
|
||||||
|
|
||||||
// directServerApiAccessCheck returns the basic server api check on direct server address
|
// directServerApiAccessCheck returns the basic server api check on direct server address
|
||||||
async function directServerApiAccessCheck(done) {
|
async function directServerApiAccessCheck(done) {
|
||||||
if (!process.env.SERVER_DOMAIN) {
|
// skip if SERVER_DOMAIN is not set or it equals PORTAL_DOMAIN (single server portals)
|
||||||
return done({ up: false, errors: [{ message: "SERVER_DOMAIN env variable not configured" }] });
|
if (!process.env.SERVER_DOMAIN || process.env.SERVER_DOMAIN === process.env.PORTAL_DOMAIN) {
|
||||||
|
return done();
|
||||||
}
|
}
|
||||||
|
|
||||||
const [portalAccessCheck, serverAccessCheck] = await Promise.all([
|
const [portalAccessCheck, serverAccessCheck] = await Promise.all([
|
||||||
|
|
Reference in New Issue