Record architecture B corrections and measurement tooling

This commit is contained in:
Steffen committed 2026-11-23 00:01:07 +01:00
1 parent 097d156c18
commit 6ea20b2365
78 files changed
+45820 -67

No files matched your search

@@ -26,7 +26,7 @@ public static class Installation
if (Uri.CheckHostName(host) == UriHostNameType.Unknown || host.Contains('%') || port is < 1024 or > 65535) throw new ArgumentException();
var id = Guid.NewGuid().ToString("N")[..12]; var prefix = "healthapp_b_" + id;
var accounts = new List<Account> { new("prototype-patient", "Patient", Secret()), new("prototype-professional", "HealthcareProfessional", Secret()), new("installation-check", "Patient", Secret()) };
var settings = new Dictionary<string, string> { ["urls"] = "https://0.0.0.0:" + port, ["Authentication:KeyDirectory"] = PathAt(root, "var/lib/healthapp-b/keys"), ["Authentication:TokenLifetimeMinutes"] = "30", ["Kestrel:Certificates:Default:Path"] = PathAt(root, "etc/healthapp-b/application.pfx"), ["Resources:MaxPoolSize"] = "32", ["Resources:MaxConcurrentRequests"] = "32", ["Resources:MaxConcurrentAssessments"] = "4", ["Resources:RequestDeadlineSeconds"] = "30" };
var settings = new Dictionary<string, string> { ["urls"] = "https://0.0.0.0:" + port, ["Authentication:KeyDirectory"] = PathAt(root, "var/lib/healthapp-b/keys"), ["Authentication:TokenLifetimeMinutes"] = "30", ["Kestrel:Certificates:Default:Path"] = PathAt(root, "etc/healthapp-b/application.pfx") };
var plan = new InstallationPlan(prefix, prefix + "_runtime", Secret(), prefix + "_profile", prefix + "_observations", host, port, Secret(), accounts, settings);
settings["Kestrel:Certificates:Default:Password"] = plan.CertificatePassword;
for (var i = 0; i < accounts.Count; i++)