aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2025-01-02 12:38:27 +0800
committerGitHub <noreply@github.com>2025-01-02 04:38:27 +0000
commit9882917bce9d582c9c1ed202d554e4a6d61ed5e4 (patch)
treea81f60b6f31a2ad1031a46bdd7a042b55059b6d9
parent4f386e2c5e39b860424faf4cbc02c16f641f956e (diff)
downloadgitea-9882917bce9d582c9c1ed202d554e4a6d61ed5e4.tar.gz
gitea-9882917bce9d582c9c1ed202d554e4a6d61ed5e4.zip
Try to fix ACME directory problem (#33072)
-rw-r--r--cmd/web_acme.go2
1 files changed, 1 insertions, 1 deletions
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