mirror of
https://github.com/mjl-/mox.git
synced 2025-06-28 08:58:16 +03:00
fix config options
This commit is contained in:
parent
e07fb5c0f5
commit
8e178d9a1f
@ -76,7 +76,7 @@ func ListenAndServe() {
|
|||||||
srv.mux.HandleFunc("/", safeHeaders(accountHandle))
|
srv.mux.HandleFunc("/", safeHeaders(accountHandle))
|
||||||
}
|
}
|
||||||
if l.AccountHTTPS.Enabled {
|
if l.AccountHTTPS.Enabled {
|
||||||
srv := ensureServe(true, config.Port(l.AccountHTTP.Port, 443), "account-https")
|
srv := ensureServe(true, config.Port(l.AccountHTTPS.Port, 443), "account-https")
|
||||||
srv.mux.HandleFunc("/", safeHeaders(accountHandle))
|
srv.mux.HandleFunc("/", safeHeaders(accountHandle))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ func ListenAndServe() {
|
|||||||
}
|
}
|
||||||
if l.AdminHTTPS.Enabled {
|
if l.AdminHTTPS.Enabled {
|
||||||
srv := ensureServe(true, config.Port(l.AdminHTTPS.Port, 443), "admin-https")
|
srv := ensureServe(true, config.Port(l.AdminHTTPS.Port, 443), "admin-https")
|
||||||
if !l.AccountHTTP.Enabled {
|
if !l.AccountHTTPS.Enabled {
|
||||||
srv.mux.HandleFunc("/", safeHeaders(adminIndex))
|
srv.mux.HandleFunc("/", safeHeaders(adminIndex))
|
||||||
}
|
}
|
||||||
srv.mux.HandleFunc("/admin/", safeHeaders(adminHandle))
|
srv.mux.HandleFunc("/admin/", safeHeaders(adminHandle))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user