about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/tls.go7
1 files changed, 2 insertions, 5 deletions
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")
 		}