switch status api to http as well
This commit is contained in:
+1
-2
@@ -293,8 +293,7 @@ async function containerStatus(containerName, tokenEnvName) {
|
||||
if (error && (error.reason === BoxError.NOT_FOUND || error.reason === BoxError.INACTIVE)) return { status: exports.SERVICE_STATUS_STOPPED };
|
||||
if (error) throw error;
|
||||
|
||||
const [networkError, response] = await safe(superagent.get(`https://${addonDetails.ip}:3000/healthcheck?access_token=${addonDetails.token}`)
|
||||
.disableTLSCerts()
|
||||
const [networkError, response] = await safe(superagent.get(`http://${addonDetails.ip}:3000/healthcheck?access_token=${addonDetails.token}`)
|
||||
.timeout(20000)
|
||||
.ok(() => true));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user