mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-28 14:08:43 +02:00
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com> Co-authored-by: bobby <1544881+desimone@users.noreply.github.com>
This commit is contained in:
parent
8dbfa3a2dc
commit
95f9e94bea
1 changed files with 6 additions and 0 deletions
|
@ -30,6 +30,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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue