1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

web: Optionally mount /debug/pprof for #120

- web: eliminate use of http.DefaultServeMux
This commit is contained in:
James Hillyerd
2018-10-20 16:16:09 -07:00
parent 5e8f00fe0b
commit 98745b3bb9
4 changed files with 29 additions and 2 deletions

View File

@@ -100,6 +100,7 @@ type Web struct {
CookieAuthKey string `desc:"Session cipher key (text)"`
MonitorVisible bool `required:"true" default:"true" desc:"Show monitor tab in UI?"`
MonitorHistory int `required:"true" default:"30" desc:"Monitor remembered messages"`
PProf bool `required:"true" default:"false" desc:"Expose profiling tools on /debug/pprof"`
}
// Storage contains the mail store configuration.