feat: refactor the dynamic json configs for api_keys and external_backends (#2055)

* feat: refactor the dynamic json configs for api_keys and external_backends

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

* fix: remove commented code

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>

---------

Signed-off-by: Chris Jowett <421501+cryptk@users.noreply.github.com>
Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
Co-authored-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
This commit is contained in:
cryptk 2024-04-17 22:21:55 -05:00 committed by GitHub
parent e9f090257c
commit 502c1eedaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 117 additions and 62 deletions

View file

@ -125,6 +125,11 @@ func Startup(opts ...config.AppOption) (*config.BackendConfigLoader, *model.Mode
}()
}
// Watch the configuration directory
// If the directory does not exist, we don't watch it
configHandler := newConfigFileHandler(options)
configHandler.Watch()
log.Info().Msg("core/startup process completed!")
return cl, ml, options, nil
}