added AllowedHosts configuration

This commit is contained in:
Philippe Beaulieu
2020-04-09 09:18:50 -04:00
parent 567755e257
commit fd213dd450
4 changed files with 11 additions and 8 deletions

13
main.go
View File

@ -15,12 +15,13 @@ type loggerLevels struct {
}
type mailRelayConfig struct {
SMTPServer string `json:"smtp_server"`
SMTPPort int `json:"smtp_port"`
SMTPUsername string `json:"smtp_username"`
SMTPPassword string `json:"smtp_password"`
LocalListenIP string `json:"local_listen_ip"`
LocalListenPort int `json:"local_listen_port"`
SMTPServer string `json:"smtp_server"`
SMTPPort int `json:"smtp_port"`
SMTPUsername string `json:"smtp_username"`
SMTPPassword string `json:"smtp_password"`
LocalListenIP string `json:"local_listen_ip"`
LocalListenPort int `json:"local_listen_port"`
AllowedHosts []string `json:"allowed_hosts"`
}
// Logger provides application logging.