From 9882917bce9d582c9c1ed202d554e4a6d61ed5e4 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 2 Jan 2025 12:38:27 +0800 Subject: [PATCH] Try to fix ACME directory problem (#33072) --- 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 90e4a02764..2fe14c1f54 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