mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 17:42:15 +08:00
change default sslmode for postgres to verify-full (#9736)
This commit is contained in:
@ -51,7 +51,7 @@ func generateConnectionString(datasource *models.DataSource) string {
|
||||
}
|
||||
}
|
||||
|
||||
sslmode := datasource.JsonData.Get("sslmode").MustString("require")
|
||||
sslmode := datasource.JsonData.Get("sslmode").MustString("verify-full")
|
||||
return fmt.Sprintf("postgres://%s:%s@%s/%s?sslmode=%s", datasource.User, password, datasource.Url, datasource.Database, sslmode)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user