mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
@@ -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)
|
||||
}
|
||||
|
@@ -148,6 +148,7 @@ func derivePGOptions(c *config.Config) (*pg.Options, error) {
|
||||
case config.DBTLSModeRequire:
|
||||
tlsConfig = &tls.Config{
|
||||
InsecureSkipVerify: false,
|
||||
ServerName: c.DBConfig.Address,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user