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

Commit c8d4bad

Browse files
committed
Fix PG connection string when using TLS
1 parent 6ea8b3b commit c8d4bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/database/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func Connect() (err error) {
5757
// Enable encrypted connections where needed
5858
if config.Conf.Pg.SSL {
5959
pgConfig.ConnConfig.TLSConfig = &tlsConfig
60-
dsn += "enable"
60+
dsn += "require"
6161
} else {
6262
dsn += "disable"
6363
}

0 commit comments

Comments
 (0)