change default sslmode for postgres to verify-full (#9736)

This commit is contained in:
Sven Klemm
2017-10-31 13:55:32 +01:00
committed by Daniel Lee
parent 948a5259a2
commit a503c1d39c
2 changed files with 3 additions and 3 deletions

View File

@ -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)
}