Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferSizes ¶ added in v1.8.0
type Config ¶
type Config struct {
Webserver struct {
ServerConfig `yaml:",inline"`
FullURL string `yaml:"full_url"`
LiteURL string `yaml:"lite_url"`
DomainsOnlyURL string `yaml:"domains_only_url"`
CompressionEnabled bool `yaml:"compression_enabled"`
}
Prometheus struct {
ServerConfig `yaml:",inline"`
Enabled bool `yaml:"enabled"`
MetricsURL string `yaml:"metrics_url"`
ExposeSystemMetrics bool `yaml:"expose_system_metrics"`
}
General struct {
// DisableDefaultLogs indicates whether the default logs used in Google Chrome and provided by Google should be disabled.
DisableDefaultLogs bool `yaml:"disable_default_logs"`
// AdditionalLogs contains additional logs provided by the user that can be used in addition to the default logs.
AdditionalLogs []LogConfig `yaml:"additional_logs"`
AdditionalTiledLogs []LogConfig `yaml:"additional_tiled_logs"`
BufferSizes BufferSizes `yaml:"buffer_sizes"`
DropOldLogs *bool `yaml:"drop_old_logs"`
Recovery struct {
Enabled bool `yaml:"enabled"`
CTIndexFile string `yaml:"ct_index_file"`
} `yaml:"recovery"`
}
}
var ( AppConfig Config Version = "1.8.1" )
func ReadConfig ¶
ReadConfig reads the config file and returns a filled Config struct.
Click to show internal directories.
Click to hide internal directories.