Skip to content

Commit 7c0b9aa

Browse files
committed
Pass cache dir to the LetsEncrypt manager
Fixes cesanta#204
1 parent 180f570 commit 7c0b9aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

auth_server/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func ServeOnce(c *server.Config, cf string, hd *httpdown.HTTP) (*server.AuthServ
7979
} else if c.Server.LetsEncrypt.Email != "" {
8080
m := &autocert.Manager{
8181
Email: c.Server.LetsEncrypt.Email,
82+
Cache: autocert.DirCache(c.Server.LetsEncrypt.CacheDir),
8283
Prompt: autocert.AcceptTOS,
8384
}
8485
if c.Server.LetsEncrypt.Host != "" {

0 commit comments

Comments
 (0)