about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--internal/server/tls.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/tls.go b/internal/server/tls.go
index fc87049..dd69a44 100644
--- a/internal/server/tls.go
+++ b/internal/server/tls.go
@@ -97,7 +97,7 @@ func (s *Server) serveTLS() (err error) {
 		rs.TlsEnabled = rc.TLSEnabled
 		rs.TlsInsecure = rc.TLSInsecure
 
-		certmagic.Default.Storage = rs
+		cfg.Storage = rs
 		err = rs.ProvisionCertMagic(context.TODO(), log.GetLogger())
 		if err != nil {
 			return errors.WithMessage(err, "could not provision redis storage")