Enable the authority middleware in the server
This commit is contained in:
parent
9628fa3562
commit
900a640f01
1 changed files with 4 additions and 0 deletions
4
ca/ca.go
4
ca/ca.go
|
@ -279,6 +279,10 @@ func (ca *CA) Init(cfg *config.Config) (*CA, error) {
|
|||
insecureHandler = logger.Middleware(insecureHandler)
|
||||
}
|
||||
|
||||
// Add authority handler
|
||||
handler = auth.Middleware(handler)
|
||||
insecureHandler = auth.Middleware(insecureHandler)
|
||||
|
||||
ca.srv = server.New(cfg.Address, handler, tlsConfig)
|
||||
|
||||
// only start the insecure server if the insecure address is configured
|
||||
|
|
Loading…
Reference in a new issue