Export Server.acmeManager
This commit is contained in:
parent
6608aaf865
commit
6ec8fd1f15
2
main.go
2
main.go
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue