mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Added ConnectionURL along with ConnectionString
This commit is contained in:
@@ -76,6 +76,9 @@ func (b *backend) DB(s logical.Storage) (*sql.DB, error) {
|
||||
}
|
||||
|
||||
conn := connConfig.ConnectionString
|
||||
if len(conn) == 0 {
|
||||
conn = connConfig.ConnectionURL
|
||||
}
|
||||
|
||||
// Ensure timezone is set to UTC for all the conenctions
|
||||
if strings.HasPrefix(conn, "postgres://") || strings.HasPrefix(conn, "postgresql://") {
|
||||
|
||||
Reference in New Issue
Block a user