Add config to not log requests to metrics endpoint

This commit is contained in:
2022-08-28 02:35:33 +02:00
parent d2fa727990
commit 52c2bd1060
4 changed files with 14 additions and 12 deletions

View File

@@ -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
}