misc: use pg queue for audit logs when enabled

This commit is contained in:
Sheen Capadngan
2024-12-04 22:22:34 +08:00
parent 16a9f8c194
commit a63191e11d
7 changed files with 228 additions and 44 deletions
+3 -1
View File
@@ -178,7 +178,9 @@ const envSchema = z
HSM_LIB_PATH: zpStr(z.string().optional()),
HSM_PIN: zpStr(z.string().optional()),
HSM_KEY_LABEL: zpStr(z.string().optional()),
HSM_SLOT: z.coerce.number().optional().default(0)
HSM_SLOT: z.coerce.number().optional().default(0),
USE_PG_QUEUE: zodStrBool.default("false")
})
// To ensure that basic encryption is always possible.
.refine(