Add autocert
This commit is contained in:
@@ -30,9 +30,18 @@ type HoneypotConfig struct {
|
||||
}
|
||||
|
||||
type FrontendConfig struct {
|
||||
ListenAddr string `toml:"ListenAddr"`
|
||||
LogLevel string `toml:"LogLevel"`
|
||||
AccessLogEnable bool `toml:"AccessLogEnable"`
|
||||
ListenAddr string `toml:"ListenAddr"`
|
||||
LogLevel string `toml:"LogLevel"`
|
||||
AccessLogEnable bool `toml:"AccessLogEnable"`
|
||||
Autocert FrontendAutocertConfig `toml:"Autocert"`
|
||||
}
|
||||
|
||||
type FrontendAutocertConfig struct {
|
||||
Enable bool `toml:"Enable"`
|
||||
Email string `toml:"Email"`
|
||||
Domains []string `toml:"Domains"`
|
||||
CacheDir string `toml:"CacheDir"`
|
||||
RedirectHTTP bool `toml:"RedirectHTTP"`
|
||||
}
|
||||
|
||||
func FromReader(r io.Reader) (Config, error) {
|
||||
|
Reference in New Issue
Block a user