mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
Read ssl mode param from the adminserver to init the connection with database (#6504)
This commit adds the ssl mode as a param when establishing the connection with database Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
7f4dac2101
commit
5388eb4db6
@ -230,6 +230,7 @@ func getDBFromConfig(cfg map[string]interface{}) *models.Database {
|
||||
postgresql.Username = cfg[common.PostGreSQLUsername].(string)
|
||||
postgresql.Password = cfg[common.PostGreSQLPassword].(string)
|
||||
postgresql.Database = cfg[common.PostGreSQLDatabase].(string)
|
||||
postgresql.SSLMode = cfg[common.PostGreSQLSSLMode].(string)
|
||||
database.PostGreSQL = postgresql
|
||||
|
||||
return database
|
||||
|
Loading…
Reference in New Issue
Block a user