Add DBGate opener for scrape database
This commit is contained in:
@@ -42,6 +42,10 @@ 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(),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -89,5 +93,9 @@ function mergeConfig(base, override) {
|
||||
...base.database,
|
||||
...override.database,
|
||||
},
|
||||
databaseGate: {
|
||||
...base.databaseGate,
|
||||
...override.databaseGate,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user