refactor: added client opts to serve.cmd and more logging info
This commit is contained in:
parent
ebe4e02cf0
commit
e1ab1e7102
2 changed files with 17 additions and 14 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue