Improve response logger and fix '/' route
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Melora Hugues 2023-10-15 17:49:33 +02:00
parent 4507728dae
commit 20fde2335e
6 changed files with 43 additions and 31 deletions

View file

@ -51,6 +51,7 @@ type BackendConfig struct {
type OpenConnectConfig struct {
ClientConfigs []*storage.Client `json:"clients"`
BackendConfigs []*BackendConfig `json:"backends"`
Issuer string `json:"issuer"`
}
type jsonConf struct {
@ -96,7 +97,6 @@ func (ac *AppConfig) UnmarshalJSON(data []byte) error {
return fmt.Errorf("failed to parse server listening mode: %w", err)
}
fmt.Println(jsonConf)
ac.ServerMode = lm
ac.SockPath = jsonConf.Server.SockPath
ac.Host = jsonConf.Server.Host