Merge pull request #119 from itzwam/patch-1
Update config.go to Support PostgresURL as ENV Var
This commit is contained in:
commit
3c13d05414
@ -864,7 +864,7 @@ func LoadConfig(file string) (*Config, error) {
|
||||
parsedConfig.Section("postgres").MapTo(&psql)
|
||||
if server.StoreBackend == "postgres" {
|
||||
if psql.URL == "" {
|
||||
return nil, ErrPostgresUnconfigured
|
||||
psql.URL = "postgres:///?sslmode=prefer"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user