Load config from Viper on Before hook (#51)
* abstract ParseConfig to its own scope * remove hardcoded values * parse config from root if present * update example.json * fix linter * code style
This commit is contained in:
@@ -53,7 +53,6 @@ func Server(opts ...Option) (http.Service, error) {
|
||||
http.TLSConfig(tlsConfig),
|
||||
)
|
||||
|
||||
options.Config.Konnectd.Listen = options.Config.HTTP.Addr
|
||||
handle := svc.NewService(
|
||||
svc.Logger(options.Logger),
|
||||
svc.Config(options.Config),
|
||||
|
||||
Reference in New Issue
Block a user