fix: update SSL mode configuration in debug.yaml and NewDB function
This commit is contained in:
+2
-1
@@ -15,12 +15,13 @@ type DB struct {
|
||||
|
||||
func NewDB(cfg *config.Config) (*DB, error) {
|
||||
dsn := fmt.Sprintf(
|
||||
"host=%s user=%s password=%s dbname=%s port=%v sslmode=disable",
|
||||
"host=%s user=%s password=%s dbname=%s port=%v sslmode=%s",
|
||||
cfg.Database.Host,
|
||||
cfg.Database.Username,
|
||||
cfg.Database.Password,
|
||||
cfg.Database.DB,
|
||||
cfg.Database.Port,
|
||||
cfg.Database.SslMode,
|
||||
)
|
||||
|
||||
if dsn == "" {
|
||||
|
||||
Reference in New Issue
Block a user