mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 13:04:38 +03:00
make http(s) path for serving the account and admin pages configurable
so you can use the host (domain) name of the mail server for serving other resources too. the default is is still that account is served on /, and so takes all incoming requests before giving webhandlers a chance. mox localserve now serves the account pages on /account/
This commit is contained in:
@ -26,9 +26,9 @@ func TestServeHTTP(t *testing.T) {
|
||||
return strings.HasPrefix(dom.ASCII, "mta-sts.")
|
||||
},
|
||||
Path: "/.well-known/mta-sts.txt",
|
||||
Handle: func(w http.ResponseWriter, r *http.Request) {
|
||||
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte("mta-sts!"))
|
||||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
Webserver: true,
|
||||
|
Reference in New Issue
Block a user