feat(g1): integrate authorized manual payouts into complete SYS.API and ROBUST economy
This commit is contained in:
1 parent
f1f6fd10d9
commit
77ba0d7736
1 file changed
+8
-1
@@ -104,9 +104,16 @@ public sealed class SysApiConnector : ServiceConnector
|
||||
ex.GetType().Name);
|
||||
}
|
||||
}
|
||||
// Completely independent authorization from the general portal token.
|
||||
// Portal payouts fail closed unless a dedicated credential is explicitly configured.
|
||||
var moneyBridge = new SysApiNvMoney(
|
||||
accounts, cfg.GetBoolean("MoneyAdminEnabled", false),
|
||||
cfg.GetBoolean("MoneyPortalEnabled", false),
|
||||
cfg.GetInt("MoneyMaxNvPerPayout", 10000),
|
||||
Environment.GetEnvironmentVariable("OGL_SYSAPI_MONEY_PORTAL_TOKEN") ?? "");
|
||||
var host = new SysApiHost(port, publicOrigin, accounts, authentication, token,
|
||||
readModel, policyStore, policyReadToken, residentGateway, adminData,
|
||||
alertPublisher);
|
||||
alertPublisher, moneyBridge);
|
||||
host.Start();
|
||||
_host = host;
|
||||
Log.InfoFormat("[SYS.API] Foundation active on loopback 127.0.0.1:{0}; public TLS proxy port 8850 requires ACME certificate.", port);
|
||||
|
||||
Reference in new issue
Block a user