mirror of
https://github.com/caddyserver/caddy.git
synced 2026-07-10 10:54:28 +00:00
diagnostics: AppendUnique(), restructure sets, add metrics, fix bugs
This commit is contained in:
parent
703cf7bf8b
commit
6b3c2212a1
10 changed files with 141 additions and 82 deletions
|
|
@ -29,7 +29,6 @@ import (
|
|||
"github.com/mholt/caddy/caddyfile"
|
||||
"github.com/mholt/caddy/caddyhttp/staticfiles"
|
||||
"github.com/mholt/caddy/caddytls"
|
||||
"github.com/mholt/caddy/diagnostics"
|
||||
)
|
||||
|
||||
const serverType = "http"
|
||||
|
|
@ -206,8 +205,6 @@ func (h *httpContext) MakeServers() ([]caddy.Server, error) {
|
|||
}
|
||||
}
|
||||
|
||||
diagnostics.Set("num_sites", len(h.siteConfigs))
|
||||
|
||||
// we must map (group) each config to a bind address
|
||||
groups, err := groupSiteConfigsByListenAddr(h.siteConfigs)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue