mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
autocert: fix bootstrapped cache store path (#1283)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
6dee647a16
commit
8a384985f0
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,12 @@ type Manager struct {
|
||||||
|
|
||||||
// New creates a new autocert manager.
|
// New creates a new autocert manager.
|
||||||
func New(src config.Source) (*Manager, error) {
|
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{
|
mgr := &Manager{
|
||||||
src: src,
|
src: src,
|
||||||
certmagic: certmagic.NewDefault(),
|
certmagic: certmagic.NewDefault(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue