diff options
author | Giteabot <teabot@gitea.io> | 2025-01-02 13:02:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-02 05:02:46 +0000 |
commit | d371aa30318e98b080049ca55121d82c09e3138b (patch) | |
tree | efd04c0d1c25a922b3ead632062b117eb96befee /cmd/web_acme.go | |
parent | 81768675d4e3bca55c2df81121b0b3b1a3a4c5cd (diff) | |
download | gitea-d371aa30318e98b080049ca55121d82c09e3138b.tar.gz gitea-d371aa30318e98b080049ca55121d82c09e3138b.zip |
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 <wxiaoguang@gmail.com>
Diffstat (limited to 'cmd/web_acme.go')
-rw-r--r-- | cmd/web_acme.go | 2 |
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 |