Skip to content

Commit 6ccad75

Browse files
committed
Enable TLS
1 parent 5b72f62 commit 6ccad75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

database/database.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package database
22

33
import (
44
"context"
5+
"crypto/tls"
56
"fmt"
67
"io"
78
"strings"
@@ -40,6 +41,7 @@ func ConnectDB(logger log.Logger, cfg *Config) (DB, error) {
4041
MaxRetries: cfg.MaxRetries,
4142
DialTimeout: cfg.DialTimeout,
4243
ReadTimeout: cfg.ReadTimeout,
44+
TLSConfig: &tls.Config{InsecureSkipVerify: true},
4345
},
4446
)
4547

0 commit comments

Comments
 (0)