Replace DBGate with local Adminer

This commit is contained in:
2026-08-05 22:21:22 +02:00
parent 7a45686952
commit 4777bda0b2
13 changed files with 105 additions and 11665 deletions
+11 -4
View File
@@ -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,
},
};