updates to ev and webfinger
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Jon Lundy
2023-05-29 09:48:20 -06:00
parent 7c4c1521fd
commit 5b9b436125
19 changed files with 559 additions and 57 deletions

17
cmd/ev/app.twtxt.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"context"
"go.sour.is/ev/internal/lg"
"go.sour.is/ev/pkg/service"
)
var _ = apps.Register(50, func(ctx context.Context, svc *service.Harness) error {
_, span := lg.Span(ctx)
defer span.End()
span.AddEvent("Enable Twtxt")
return nil
})

View File

@@ -38,7 +38,7 @@ var _ = apps.Register(50, func(ctx context.Context, svc *service.Harness) error
cache.SetDefault(s, true)
return false
})
var withHostnames webfinger.WithHostnames = strings.Fields(env.Default(" ", "sour.is"))
var withHostnames webfinger.WithHostnames = strings.Fields(env.Default("WEBFINGER_DOMAINS", "sour.is"))
wf, err := webfinger.New(ctx, eventstore, withCache, withHostnames)
if err != nil {