Replace DBGate with local Adminer
This commit is contained in:
+11
-4
@@ -42,9 +42,14 @@ export function loadConfig({ configPath = "config/local.json", dryRun } = {}) {
|
||||
scrapeName: env.SCRAPE_DB_NAME || config.database?.scrapeName || "catalog_scrape",
|
||||
connectionLimit: Number(env.DB_CONNECTION_LIMIT || config.database?.connectionLimit || 5),
|
||||
},
|
||||
databaseGate: {
|
||||
url: env.DBGATE_URL || config.databaseGate?.url || "http://127.0.0.1:3000",
|
||||
browserEngine: String(env.DBGATE_BROWSER_ENGINE || config.databaseGate?.browserEngine || "chromium").toLowerCase(),
|
||||
databaseTool: {
|
||||
url: env.ADMINER_URL || config.databaseTool?.url || config.databaseGate?.url || "http://127.0.0.1:8080",
|
||||
browserEngine: String(
|
||||
env.ADMINER_BROWSER_ENGINE
|
||||
|| config.databaseTool?.browserEngine
|
||||
|| config.databaseGate?.browserEngine
|
||||
|| "chromium",
|
||||
).toLowerCase(),
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -93,8 +98,10 @@ function mergeConfig(base, override) {
|
||||
...base.database,
|
||||
...override.database,
|
||||
},
|
||||
databaseGate: {
|
||||
databaseTool: {
|
||||
...base.databaseTool,
|
||||
...base.databaseGate,
|
||||
...override.databaseTool,
|
||||
...override.databaseGate,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user