This commit is contained in:
mr
2026-02-10 09:39:13 +01:00
parent eb6dee0c4d
commit af0a8cb117
5 changed files with 34 additions and 12 deletions

View File

@@ -19,6 +19,7 @@ import (
peer "cloud.o-forge.io/core/oc-lib/models/peer"
"cloud.o-forge.io/core/oc-lib/models/utils"
"cloud.o-forge.io/core/oc-lib/tools"
beego "github.com/beego/beego/v2/server/web"
"github.com/i-core/rlog"
)
@@ -29,6 +30,7 @@ const appname = "oc-auth"
// @name Authorization
// @description Type "Bearer" followed by a space and JWT token.
func main() {
oclib.InitAPI(appname)
// Load the right config file
o := oclib.GetConfLoader(appname)
@@ -60,7 +62,8 @@ func main() {
go generateSelfPeer()
go generateRole()
go discovery()
oclib.InitAPI(appname)
beego.Run()
}
func generateRole() {