fix: Use the correct domain for metrics
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
PapaTutuWawa committed 2024-02-03 12:23:38 +01:00
1 parent 315bb39f44
commit 8630855374
1 file changed
+2 -7
+2 -7
View File
@@ -63,15 +63,10 @@ func handleSubdomain(ctx *context.GlobalContext, domain, cname, path string, req
return
}
d := domain
if cname != "" {
d = cname
}
c := &context.Context{
Username: username,
Reponame: repo.Name,
Domain: d,
Domain: domain,
Path: path,
Referrer: req.Header.Get("Referer"),
UserAgent: req.Header.Get("User-Agent"),
@@ -288,7 +283,7 @@ func runServer(ctx *cli.Context) error {
go func() {
defer waitGroup.Done()
log.Debug("Listening on main HTTP server")
log.Infof("Listening on main HTTP server %s", httpAddr)
if err := http.Serve(listener, Handler(globalCtx)); err != nil {
log.Fatal(fmt.Errorf("Listening failed: %v", err))
}