mirror of
https://github.com/goharbor/harbor
synced 2025-04-30 23:35:31 +00: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.Username = cfg[common.PostGreSQLUsername].(string)
|
||||||
postgresql.Password = cfg[common.PostGreSQLPassword].(string)
|
postgresql.Password = cfg[common.PostGreSQLPassword].(string)
|
||||||
postgresql.Database = cfg[common.PostGreSQLDatabase].(string)
|
postgresql.Database = cfg[common.PostGreSQLDatabase].(string)
|
||||||
|
postgresql.SSLMode = cfg[common.PostGreSQLSSLMode].(string)
|
||||||
database.PostGreSQL = postgresql
|
database.PostGreSQL = postgresql
|
||||||
|
|
||||||
return database
|
return database
|
||||||
|
Loading…
x
Reference in New Issue
Block a user