Add config to not log requests to metrics endpoint
This commit is contained in:
@@ -34,10 +34,11 @@ type HoneypotConfig struct {
|
||||
}
|
||||
|
||||
type FrontendConfig struct {
|
||||
ListenAddr string `toml:"ListenAddr"`
|
||||
LogLevel string `toml:"LogLevel"`
|
||||
AccessLogEnable bool `toml:"AccessLogEnable"`
|
||||
Autocert FrontendAutocertConfig `toml:"Autocert"`
|
||||
ListenAddr string `toml:"ListenAddr"`
|
||||
LogLevel string `toml:"LogLevel"`
|
||||
AccessLogEnable bool `toml:"AccessLogEnable"`
|
||||
AccessLogIgnoreMetrics bool `toml:"AccessLogIgnoreMetrics"`
|
||||
Autocert FrontendAutocertConfig `toml:"Autocert"`
|
||||
}
|
||||
|
||||
type FrontendAutocertConfig struct {
|
||||
@@ -78,7 +79,7 @@ func FromReader(r io.Reader) (Config, error) {
|
||||
return c, fmt.Errorf("unable to parse config: %w", err)
|
||||
}
|
||||
|
||||
//c.readEnv()
|
||||
// c.readEnv()
|
||||
|
||||
return c, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user