Remove old smtp and port stuff
This commit is contained in:
@@ -13,8 +13,6 @@ type Config struct {
|
||||
Store StoreConfig `toml:"Store"`
|
||||
Honeypot HoneypotConfig `toml:"Honeypot"`
|
||||
Frontend FrontendConfig `toml:"Frontend"`
|
||||
Ports PortsConfig `toml:"Ports"`
|
||||
SMTP SMTPConfig `toml:"SMTP"`
|
||||
}
|
||||
type StoreConfig struct {
|
||||
Type string `toml:"Type"`
|
||||
@@ -54,19 +52,6 @@ type FrontendAutocertConfig struct {
|
||||
RedirectHTTP bool `toml:"RedirectHTTP"`
|
||||
}
|
||||
|
||||
type PortsConfig struct {
|
||||
Enable bool `toml:"Enable"`
|
||||
Addr string `toml:"Addr"`
|
||||
TCPPorts []string `toml:"TCPPorts"`
|
||||
UDPPorts []string `toml:"UDPPorts"`
|
||||
}
|
||||
|
||||
type SMTPConfig struct {
|
||||
Enable bool `toml:"Enable"`
|
||||
Addr string `toml:"Addr"`
|
||||
EnableMetrics bool `toml:"EnableMetrics"`
|
||||
}
|
||||
|
||||
func FromReader(r io.Reader) (Config, error) {
|
||||
var c Config
|
||||
|
||||
@@ -76,7 +61,6 @@ func FromReader(r io.Reader) (Config, error) {
|
||||
c.Frontend.ListenAddr = ":8080"
|
||||
c.Frontend.LogLevel = "INFO"
|
||||
c.Frontend.AccessLogEnable = true
|
||||
c.SMTP.Addr = ":25"
|
||||
|
||||
// Read from config
|
||||
decoder := toml.NewDecoder(r)
|
||||
|
Reference in New Issue
Block a user