mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
allowed databases - env variable
Some checks are pending
Run tests / test-runner (push) Waiting to run
Some checks are pending
Run tests / test-runner (push) Waiting to run
This commit is contained in:
parent
61b9fd9210
commit
45a1c58dc5
@ -72,6 +72,8 @@ function getPortalCollections() {
|
|||||||
displayName: process.env[`LABEL_${id}`],
|
displayName: process.env[`LABEL_${id}`],
|
||||||
isReadOnly: process.env[`READONLY_${id}`],
|
isReadOnly: process.env[`READONLY_${id}`],
|
||||||
databases: process.env[`DBCONFIG_${id}`] ? safeJsonParse(process.env[`DBCONFIG_${id}`]) : null,
|
databases: process.env[`DBCONFIG_${id}`] ? safeJsonParse(process.env[`DBCONFIG_${id}`]) : null,
|
||||||
|
allowedDatabases: process.env[`ALLOWED_DATABASES_${id}`]?.replace(/|/g, '\n'),
|
||||||
|
allowedDatabasesRegex: process.env[`ALLOWED_DATABASES_REGEX_${id}`],
|
||||||
parent: process.env[`PARENT_${id}`] || undefined,
|
parent: process.env[`PARENT_${id}`] || undefined,
|
||||||
|
|
||||||
// SSH tunnel
|
// SSH tunnel
|
||||||
|
Loading…
Reference in New Issue
Block a user