mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-18 13:23:26 +00:00
added postgresql support & added a postgres containers
This commit is contained in:
@@ -9,6 +9,22 @@ function generateDbConfig() {
|
||||
if (cfg.engine === 'knex-native') {
|
||||
return cfg.knex;
|
||||
}
|
||||
if (cfg.engine === 'pg') {
|
||||
|
||||
return {
|
||||
client: cfg.engine,
|
||||
connection: {
|
||||
host: cfg.host,
|
||||
user: cfg.user,
|
||||
password: cfg.password,
|
||||
database: cfg.name,
|
||||
port: cfg.port
|
||||
},
|
||||
migrations: {
|
||||
tableName: 'migrations'
|
||||
}
|
||||
};
|
||||
}
|
||||
return {
|
||||
client: cfg.engine,
|
||||
connection: {
|
||||
|
||||
Reference in New Issue
Block a user