Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromgo-gitea/gitea

Commit626cb12

Browse files
wxiaoguangGiteaBot
authored andcommitted
Fix ACME panic (go-gitea#33178)
Fixgo-gitea#33177, Manually tested:````1.7364311850484018e+09infomaintenancestarted background certificate maintenance{"cache": "0x1400ca64180"}1.736431185054049e+09infoobtainacquiring lock{"identifier": "example.com"}1.736431185058073e+09infoobtainlock acquired{"identifier": "example.com"}1.736431185058133e+09infoobtainobtaining certificate{"identifier": "example.com"}````
1 parent3cfff5a commit626cb12

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎cmd/web_acme.go‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ func runACME(listenAddr string, m http.Handler) error {
5454
altTLSALPNPort=p
5555
}
5656

57-
magic:=&certmagic.Default
58-
magic.Storage=&certmagic.FileStorage{Path:setting.AcmeLiveDirectory}
57+
// FIXME: this path is not right, it uses "AppWorkPath" incorrectly, and writes the data into "AppWorkPath/https"
58+
// Ideally it should migrate to AppDataPath write to "AppDataPath/https"
59+
certmagic.Default.Storage=&certmagic.FileStorage{Path:setting.AcmeLiveDirectory}
60+
magic:=certmagic.NewDefault()
5961
// Try to use private CA root if provided, otherwise defaults to system's trust
6062
varcertPool*x509.CertPool
6163
ifsetting.AcmeCARoot!="" {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp