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:
Alex Unger
2020-03-17 17:48:25 +01:00
committed by GitHub
parent 439cc7d4f5
commit c16003d47e
5 changed files with 51 additions and 46 deletions
-1
View File
@@ -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),