mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Enable the authority middleware in the server
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user