mirror of
https://github.com/1f349/lotus.git
synced 2024-12-22 08:04:06 +00:00
This is called sendmail everywhere
This commit is contained in:
parent
b35b25c11c
commit
a21b4c4871
@ -8,6 +8,6 @@ import (
|
|||||||
type Conf struct {
|
type Conf struct {
|
||||||
Listen string `yaml:"listen"`
|
Listen string `yaml:"listen"`
|
||||||
Audience string `yaml:"audience"`
|
Audience string `yaml:"audience"`
|
||||||
Smtp *sendmail.Smtp `yaml:"sendmail"`
|
SendMail *sendmail.Smtp `yaml:"sendmail"`
|
||||||
Imap *imap.Imap `yaml:"imap"`
|
Imap *imap.Imap `yaml:"imap"`
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
userAuth := api.CheckAuth(verify, conf.Audience)
|
userAuth := api.CheckAuth(verify, conf.Audience)
|
||||||
srv := api.SetupApiServer(conf.Listen, userAuth, conf.Smtp, conf.Imap)
|
srv := api.SetupApiServer(conf.Listen, userAuth, conf.SendMail, conf.Imap)
|
||||||
log.Printf("[Lotus] Starting API server on: '%s'\n", srv.Addr)
|
log.Printf("[Lotus] Starting API server on: '%s'\n", srv.Addr)
|
||||||
go utils.RunBackgroundHttp("Lotus", srv)
|
go utils.RunBackgroundHttp("Lotus", srv)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user