refactor: added client opts to serve.cmd and more logging info

This commit is contained in:
David Allen 2024-12-12 14:28:48 -07:00
parent ebe4e02cf0
commit e1ab1e7102
Signed by: towk
GPG key ID: 793B2924A49B3A3F
2 changed files with 17 additions and 14 deletions

View file

@ -42,14 +42,7 @@ var serveCmd = &cobra.Command{
}
// set up the routes and start the serve
server := server.Server{
Config: &conf,
Server: &http.Server{Addr: conf.Server.Host},
Jwks: server.Jwks{
Uri: conf.Server.Jwks.Uri,
Retries: conf.Server.Jwks.Retries,
},
}
server := server.New(&conf)
// start listening with the server
err := server.Serve()