mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 03:27:38 +00:00
misc: use pg queue for audit logs when enabled
This commit is contained in:
+8
-1
@@ -55,7 +55,14 @@ const run = async () => {
|
||||
}
|
||||
|
||||
const smtp = smtpServiceFactory(formatSmtpConfig());
|
||||
const queue = queueServiceFactory(appCfg.REDIS_URL);
|
||||
|
||||
const queue = queueServiceFactory(appCfg.REDIS_URL, appCfg.DB_CONNECTION_URI);
|
||||
|
||||
if (appCfg.USE_PG_QUEUE) {
|
||||
logger.info("Initializing PG queue...");
|
||||
await queue.initialize();
|
||||
}
|
||||
|
||||
const keyStore = keyStoreFactory(appCfg.REDIS_URL);
|
||||
|
||||
const hsmModule = initializeHsmModule();
|
||||
|
||||
Reference in New Issue
Block a user