From d371aa30318e98b080049ca55121d82c09e3138b Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 2 Jan 2025 13:02:46 +0800 Subject: [PATCH] Try to fix ACME directory problem (#33072) (#33077) Backport #33072 by wxiaoguang Haven't really confirmed, but I think it might fix #32191 Co-authored-by: wxiaoguang --- cmd/web_acme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web_acme.go b/cmd/web_acme.go index 90e4a02764b..2fe14c1f54c 100644 --- a/cmd/web_acme.go +++ b/cmd/web_acme.go @@ -54,7 +54,7 @@ func runACME(listenAddr string, m http.Handler) error { altTLSALPNPort = p } - magic := certmagic.NewDefault() + magic := &certmagic.Default magic.Storage = &certmagic.FileStorage{Path: setting.AcmeLiveDirectory} // Try to use private CA root if provided, otherwise defaults to system's trust var certPool *x509.CertPool