mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-19 04:08:21 +00:00
Merge branch 'main' into add-bull-queue
This commit is contained in:
@@ -6,13 +6,21 @@ const router = express.Router();
|
||||
router.get(
|
||||
"/status",
|
||||
async (req: Request, res: Response) => {
|
||||
const gitAppId = await getSecretScanningGitAppId()
|
||||
const gitSecretScanningWebhookSecret = await getSecretScanningWebhookSecret()
|
||||
const gitSecretScanningPrivateKey = await getSecretScanningPrivateKey()
|
||||
let secretScanningConfigured = false
|
||||
if (gitAppId && gitSecretScanningPrivateKey && gitSecretScanningWebhookSecret) {
|
||||
secretScanningConfigured = true
|
||||
}
|
||||
|
||||
res.status(200).json({
|
||||
date: new Date(),
|
||||
message: "Ok",
|
||||
emailConfigured: await getSmtpConfigured(),
|
||||
secretScanningConfigured: await getSecretScanningGitAppId() && await getSecretScanningWebhookSecret() && await getSecretScanningPrivateKey(),
|
||||
inviteOnlySignup: await getInviteOnlySignup(),
|
||||
redisConfigured: await getRedisUrl() !== "" && await getRedisUrl() !== undefined
|
||||
secretScanningConfigured: secretScanningConfigured,
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user