Sign Resource

This commit is contained in:
mr
2026-02-09 12:37:03 +01:00
parent b767afb301
commit b9c9b66780
9 changed files with 115 additions and 12 deletions

View File

@@ -40,7 +40,7 @@ func GetConfig() *Config {
return instance
}
func SetConfig(mongoUrl string, database string, natsUrl string, lokiUrl string, logLevel string, port int) *Config {
func SetConfig(mongoUrl string, database string, natsUrl string, lokiUrl string, logLevel string, port int, pkPath, ppPath string) *Config {
GetConfig().MongoUrl = mongoUrl
GetConfig().MongoDatabase = database
GetConfig().NATSUrl = natsUrl
@@ -48,5 +48,7 @@ func SetConfig(mongoUrl string, database string, natsUrl string, lokiUrl string,
GetConfig().LogLevel = logLevel
GetConfig().Whitelist = true
GetConfig().APIPort = port
GetConfig().PrivateKeyPath = pkPath
GetConfig().PublicKeyPath = ppPath
return GetConfig()
}