Remove old smtp and port stuff

This commit is contained in:
2023-10-12 21:06:10 +02:00
parent fb2fb5de5e
commit 53ae82727c
13 changed files with 100 additions and 1005 deletions

View File

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