Export Server.acmeManager

This commit is contained in:
Simon Ser 2020-09-10 14:37:59 +02:00
parent 6608aaf865
commit 6ec8fd1f15
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
2 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ func parseTLS(srv *Server, d *Directive) error {
if err := child.ParseParams(&caURL); err != nil {
return err
}
srv.acmeManager.CA = caURL
srv.ACMEManager.CA = caURL
default:
return fmt.Errorf("unknown %q directive", child.Name)
}

View File

@ -16,8 +16,8 @@ type Server struct {
Listeners map[string]*Listener // indexed by listening address
Frontends []*Frontend
ManagedNames []string
ACMEManager *certmagic.ACMEManager
acmeManager *certmagic.ACMEManager
certmagic *certmagic.Config
}
@ -33,7 +33,7 @@ func NewServer() *Server {
return &Server{
Listeners: make(map[string]*Listener),
acmeManager: mgr,
ACMEManager: mgr,
certmagic: cfg,
}
}