mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
feat: wip postgres support
This commit is contained in:
parent
ffa2447c59
commit
cc0c071cce
16 changed files with 362 additions and 211 deletions
|
@ -23,6 +23,12 @@ func Defaults() domain.Config {
|
|||
BaseURL: "/",
|
||||
SessionSecret: "secret-session-key",
|
||||
CustomDefinitions: "",
|
||||
DatabaseType: "sqlite",
|
||||
PostgresHost: "",
|
||||
PostgresPort: 0,
|
||||
PostgresDatabase: "",
|
||||
PostgresUser: "",
|
||||
PostgresPass: "",
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -127,6 +133,7 @@ func Read(configPath string) domain.Config {
|
|||
}
|
||||
|
||||
viper.SetConfigFile(path.Join(configPath, "config.toml"))
|
||||
config.ConfigPath = configPath
|
||||
} else {
|
||||
viper.SetConfigName("config")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue