From fc89e757d4c29d0fea4eafe7573688549be98c51 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 30 Nov 2024 16:52:19 +0100 Subject: Fork caddy-storage-redis and make certmagic-only --- internal/server/tls.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'internal') diff --git a/internal/server/tls.go b/internal/server/tls.go index 8e7ba31..b299b0b 100644 --- a/internal/server/tls.go +++ b/internal/server/tls.go @@ -10,11 +10,10 @@ import ( "go.alanpearce.eu/x/listenfd" + certmagic_redis "github.com/alanpearce/certmagic-storage-redis" "github.com/ardanlabs/conf/v3" - "github.com/caddyserver/caddy/v2" "github.com/caddyserver/certmagic" "github.com/libdns/powerdns" - certmagic_redis "github.com/pberkel/caddy-storage-redis" "gitlab.com/tozd/go/errors" ) @@ -97,9 +96,7 @@ func (s *Server) serveTLS() (err error) { rs.TlsInsecure = rc.TLSInsecure certmagic.Default.Storage = rs - err = rs.Provision(caddy.Context{ - Context: context.Background(), - }) + err = rs.ProvisionCertMagic(context.TODO(), log.GetLogger()) if err != nil { return errors.WithMessage(err, "could not provision redis storage") } -- cgit 1.4.1