Some work to allow toggling between lucene search and SQL search for audit logs.
This commit is contained in:
parent
f4663a9206
commit
ffcd9e498d
|
@ -1 +1 @@
|
|||
Subproject commit a6492c51ea691c3ff969a7b92d4c66f919c06417
|
||||
Subproject commit 06e908dc1fd8a3d03eca5a0e92894612770cfbe8
|
|
@ -4,8 +4,13 @@ const compress = require("koa-compress")
|
|||
|
||||
import zlib from "zlib"
|
||||
import { routes } from "./routes"
|
||||
import { middleware as pro } from "@budibase/pro"
|
||||
import { middleware as pro, sdk } from "@budibase/pro"
|
||||
import { auth, middleware } from "@budibase/backend-core"
|
||||
import env from "../environment"
|
||||
|
||||
if (env.SQS_SEARCH_ENABLE) {
|
||||
sdk.auditLogs.useSQLSearch()
|
||||
}
|
||||
|
||||
const PUBLIC_ENDPOINTS = [
|
||||
// deprecated single tenant sso callback
|
||||
|
|
|
@ -45,6 +45,7 @@ const environment = {
|
|||
DISABLE_ACCOUNT_PORTAL: process.env.DISABLE_ACCOUNT_PORTAL,
|
||||
SMTP_FALLBACK_ENABLED: process.env.SMTP_FALLBACK_ENABLED,
|
||||
DISABLE_DEVELOPER_LICENSE: process.env.DISABLE_DEVELOPER_LICENSE,
|
||||
SQS_SEARCH_ENABLE: process.env.SQS_SEARCH_ENABLE,
|
||||
// smtp
|
||||
SMTP_USER: process.env.SMTP_USER,
|
||||
SMTP_PASSWORD: process.env.SMTP_PASSWORD,
|
||||
|
|
Loading…
Reference in New Issue