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 {
|
if err := child.ParseParams(&caURL); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
srv.acmeManager.CA = caURL
|
srv.ACMEManager.CA = caURL
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unknown %q directive", child.Name)
|
return fmt.Errorf("unknown %q directive", child.Name)
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,8 @@ type Server struct {
|
||||||
Listeners map[string]*Listener // indexed by listening address
|
Listeners map[string]*Listener // indexed by listening address
|
||||||
Frontends []*Frontend
|
Frontends []*Frontend
|
||||||
ManagedNames []string
|
ManagedNames []string
|
||||||
|
ACMEManager *certmagic.ACMEManager
|
||||||
|
|
||||||
acmeManager *certmagic.ACMEManager
|
|
||||||
certmagic *certmagic.Config
|
certmagic *certmagic.Config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ func NewServer() *Server {
|
||||||
|
|
||||||
return &Server{
|
return &Server{
|
||||||
Listeners: make(map[string]*Listener),
|
Listeners: make(map[string]*Listener),
|
||||||
acmeManager: mgr,
|
ACMEManager: mgr,
|
||||||
certmagic: cfg,
|
certmagic: cfg,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue