Skip to content

Commit

Permalink
Fix PG connection string when using TLS
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed May 21, 2024
1 parent 6ea8b3b commit c8d4bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/database/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func Connect() (err error) {
// Enable encrypted connections where needed
if config.Conf.Pg.SSL {
pgConfig.ConnConfig.TLSConfig = &tlsConfig
dsn += "enable"
dsn += "require"
} else {
dsn += "disable"
}
Expand Down

0 comments on commit c8d4bad

Please sign in to comment.