add tokenmanager to userlog to fix startup

This commit is contained in:
Willy Kloucek
2023-03-02 08:39:56 +01:00
parent ab41d0ae45
commit 1234429a8d
4 changed files with 24 additions and 1 deletions

View File

@@ -69,6 +69,14 @@ func EnsureDefaults(cfg *config.Config) {
}
}
if cfg.TokenManager == nil && cfg.Commons != nil && cfg.Commons.TokenManager != nil {
cfg.TokenManager = &config.TokenManager{
JWTSecret: cfg.Commons.TokenManager.JWTSecret,
}
} else if cfg.TokenManager == nil {
cfg.TokenManager = &config.TokenManager{}
}
if cfg.Commons != nil {
cfg.HTTP.TLS = cfg.Commons.HTTPServiceTLS
}