Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit a20fdd7

Browse files
committed
common: Tweak production DB TLS code
1 parent a45c2a5 commit a20fdd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ func ReadConfig() error {
179179
pgConfig.Database = Conf.Pg.Database
180180
clientTLSConfig := tls.Config{}
181181
if Conf.Environment.Environment == "production" {
182+
clientTLSConfig.ServerName = Conf.Pg.Server
182183
clientTLSConfig.InsecureSkipVerify = false
183184
} else {
184185
clientTLSConfig.InsecureSkipVerify = true

0 commit comments

Comments
 (0)