about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
authorAlan Pearce2024-11-30 16:52:19 +0100
committerAlan Pearce2024-11-30 16:52:19 +0100
commitfc89e757d4c29d0fea4eafe7573688549be98c51 (patch)
treec15d2de2182a70c34add6b87c834cf525bbd1082 /internal/server
parent63e6bccebba5246e8899109ac6e0d21888bb8983 (diff)
downloadwebsite-fc89e757d4c29d0fea4eafe7573688549be98c51.tar.lz
website-fc89e757d4c29d0fea4eafe7573688549be98c51.tar.zst
website-fc89e757d4c29d0fea4eafe7573688549be98c51.zip
Fork caddy-storage-redis and make certmagic-only
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")
 		}