Skip to content

Commit

Permalink
Config bugfix (#104)
Browse files Browse the repository at this point in the history
* fix some config bugs

* go fmt
  • Loading branch information
tsmethurst authored Jul 19, 2021
1 parent b1a4f38 commit 29bdc41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func loadFromFile(path string) (*Config, error) {
return nil, fmt.Errorf("could not read file at path %s: %s", path, err)
}

config := &Config{}
config := Empty()
if err := yaml.Unmarshal(bytes, config); err != nil {
return nil, fmt.Errorf("could not unmarshal file at path %s: %s", path, err)
}
Expand Down
1 change: 1 addition & 0 deletions internal/db/pg/pg.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func derivePGOptions(c *config.Config) (*pg.Options, error) {
case config.DBTLSModeRequire:
tlsConfig = &tls.Config{
InsecureSkipVerify: false,
ServerName: c.DBConfig.Address,
}
}

Expand Down

0 comments on commit 29bdc41

Please sign in to comment.