Initial commit: Ananta CBT 4229938 private server with all fixes

This commit is contained in:
CAtlas0784 committed 2026-09-15 18:13:46 +07:00
commit c84135c357
286 files changed
+2214315

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
using Ananta.SDK.Logging;
using Ananta.Server.App;
using Ananta.Server.Configuration;
using Ananta.Server.Protocol.Client4229938;
var (config, configPath) = PrivateServerConfigLoader.Load();
PrivateServerConfigStore.Initialize(config, configPath);
// Start the console mirror before the first application log line. Run-All supplies the same
// run id/files to the Node proxy, so both processes land in one console-latest/archive pair.
RuntimeLogs.Initialize(
PrivateServerConfigStore.ResolveProjectPath(config.Logging.Directory),
Environment.GetEnvironmentVariable("Ananta_RUN_ID"),
config.Logging.Console.Enabled,
config.Logging.Packets.Enabled,
config.Logging.Packets.IncludeHex,
config.Logging.Packets.IncludeDecoded,
config.Logging.Packets.MaxBodyBytes);
using var shutdown = new CancellationTokenSource();
Console.CancelKeyPress += (_, e) =>
{
e.Cancel = true;
shutdown.Cancel();
};
await new PrivateServerApplication(config).RunAsync(shutdown.Token);