We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fec2db1 commit e1f6a88Copy full SHA for e1f6a88
main.go
@@ -12,21 +12,29 @@ import (
12
"github.com/mailhog/MailHog-Server/config"
13
"github.com/mailhog/MailHog-Server/smtp"
14
"github.com/mailhog/MailHog-UI/assets"
15
+ comcfg "github.com/mailhog/MailHog/config"
16
"github.com/mailhog/http"
17
)
18
19
var conf *config.Config
20
+var comconf *comcfg.Config
21
var exitCh chan int
22
23
func configure() {
24
+ comcfg.RegisterFlags()
25
config.RegisterFlags()
26
flag.Parse()
27
conf = config.Configure()
28
+ comconf = comcfg.Configure()
29
}
30
31
func main() {
32
configure()
33
34
+ if comconf.AuthFile != "" {
35
+ http.AuthFile(comconf.AuthFile)
36
+ }
37
+
38
exitCh = make(chan int)
39
cb := func(r gohttp.Handler) {
40
api.CreateAPIv1(conf, r.(*pat.Router))
0 commit comments