mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00

* feat: show new update banner * feat(http): add request logger * refactor: updates checker * feat: make update check optional * fix: empty releases * add toggle switch for update checks * feat: toggle updates check from settings * feat: toggle updates check from settings * feat: check on toggle enabled --------- Co-authored-by: soup <soup@r4tio.dev>
31 lines
1.2 KiB
Go
31 lines
1.2 KiB
Go
package domain
|
|
|
|
type Config struct {
|
|
Version string
|
|
ConfigPath string
|
|
Host string `toml:"host"`
|
|
Port int `toml:"port"`
|
|
LogLevel string `toml:"logLevel"`
|
|
LogPath string `toml:"logPath"`
|
|
LogMaxSize int `toml:"logMaxSize"`
|
|
LogMaxBackups int `toml:"logMaxBackups"`
|
|
BaseURL string `toml:"baseUrl"`
|
|
SessionSecret string `toml:"sessionSecret"`
|
|
CustomDefinitions string `toml:"customDefinitions"`
|
|
CheckForUpdates bool `toml:"checkForUpdates"`
|
|
DatabaseType string `toml:"databaseType"`
|
|
PostgresHost string `toml:"postgresHost"`
|
|
PostgresPort int `toml:"postgresPort"`
|
|
PostgresDatabase string `toml:"postgresDatabase"`
|
|
PostgresUser string `toml:"postgresUser"`
|
|
PostgresPass string `toml:"postgresPass"`
|
|
}
|
|
|
|
type ConfigUpdate struct {
|
|
Host *string `json:"host,omitempty"`
|
|
Port *int `json:"port,omitempty"`
|
|
LogLevel *string `json:"log_level,omitempty"`
|
|
LogPath *string `json:"log_path,omitempty"`
|
|
BaseURL *string `json:"base_url,omitempty"`
|
|
CheckForUpdates *bool `json:"check_for_updates,omitempty"`
|
|
}
|