autocert: fix bootstrapped cache store path (#1283)

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
bobby 2020-08-17 13:27:11 -07:00 committed by GitHub
parent 6dee647a16
commit 8a384985f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,6 +37,12 @@ type Manager struct {
// New creates a new autocert manager.
func New(src config.Source) (*Manager, error) {
// set certmagic default storage cache, otherwise cert renewal loop will be based off
// certmagic's own default location
certmagic.Default.Storage = &certmagic.FileStorage{
Path: src.GetConfig().Options.AutocertOptions.Folder,
}
mgr := &Manager{
src: src,
certmagic: certmagic.NewDefault(),