Skip to content

Commit

Permalink
Update server.go (#988)
Browse files Browse the repository at this point in the history
  • Loading branch information
charymalloju authored Dec 19, 2023
1 parent 69dbb6b commit 8ea7b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func main() {
apiCfg := config.API

// TODO: add ssl support
psqlconn := fmt.Sprintf("host=%s port=%s user=%s password=%s dbname=%s sslmode=disable", cfg.Host, cfg.Port, cfg.User, cfg.Password, cfg.DatabaseName)
psqlconn := fmt.Sprintf("host=%s port=%s user=%s password=%s dbname=%s sslmode=require", cfg.Host, cfg.Port, cfg.User, cfg.Password, cfg.DatabaseName)

// open database
db, err := sql.Open("postgres", psqlconn)
Expand Down

0 comments on commit 8ea7b72

Please sign in to comment.