Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteDefault ¶
WriteDefault writes a default config file to the given path.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
APIKey Secret `mapstructure:"api_key"`
}
AuthConfig holds the Pulse API key used to authenticate requests.
type Config ¶
type Config struct {
Server ServerConfig `mapstructure:"server"`
Database DatabaseConfig `mapstructure:"database"`
Log LogConfig `mapstructure:"log"`
Auth AuthConfig `mapstructure:"auth"`
FlareSolverr FlareSolverrConfig `mapstructure:"flaresolverr"`
// ConfigFile is the path of the config file that was loaded, if any.
ConfigFile string `mapstructure:"-"`
}
Config holds all application configuration. Values are loaded from config.yaml and can be overridden by PULSE_* environment variables (e.g. PULSE_SERVER_PORT=9696).
type DatabaseConfig ¶
type DatabaseConfig struct {
Driver string `mapstructure:"driver"`
DSN Secret `mapstructure:"dsn"`
// PasswordFile is a path to a file containing the database password,
// typically a Docker secret mounted at /run/secrets/*. When non-empty,
// its contents replace the password component of DSN at load time.
PasswordFile string `mapstructure:"password_file"`
}
DatabaseConfig selects and configures the database driver.
type FlareSolverrConfig ¶
type FlareSolverrConfig struct {
// URL is the FlareSolverr endpoint (e.g., "http://localhost:8191").
// Empty means disabled.
URL string `mapstructure:"url"`
}
FlareSolverrConfig holds optional FlareSolverr proxy settings. When URL is set, Pulse will use FlareSolverr to bypass Cloudflare challenges on protected indexer sites.
type ServerConfig ¶
type ServerConfig struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
ExternalURL string `mapstructure:"external_url"` // e.g., "http://pulse:9696" — for Torznab proxy URLs
}
ServerConfig controls the HTTP server.
Click to show internal directories.
Click to hide internal directories.