fix: startup fixes

This commit is contained in:
Daniel Harvey
2026-05-26 12:54:39 -04:00
parent d41916c7b9
commit d2ef21066d
2 changed files with 4 additions and 10 deletions
+3 -5
View File
@@ -11,15 +11,13 @@ builder.Services.AddMudServices();
var apiPath = CredentialTools.ResolvePathOrThrow("api", "environment/api.json");
builder.Configuration.AddJsonFile(apiPath, optional: false, reloadOnChange: false);
var contentApiUrl = builder.Configuration["ApiUrls:ContentApi"] ?? throw new Exception("Content API URL is not configured");
var sqlApiUrl = builder.Configuration["ApiUrls:SqlApi"] ?? throw new Exception("ApiUrls:SqlApi is not configured");
string apiUrl = builder.Configuration["Api:ContentApiUrl"] ?? throw new NullReferenceException("Api url is missing");
// Server-side, both named clients point straight at DeepDrftAPI (server-to-server,
// no proxy hop). The TrackController below reuses the "DeepDrft.API" client to forward
// the WASM client's public track calls upstream.
DeepDrftPublic.Client.Startup.ConfigureApiHttpClient(builder.Services, sqlApiUrl);
DeepDrftPublic.Client.Startup.ConfigureContentServices(builder.Services, contentApiUrl);
DeepDrftPublic.Client.Startup.ConfigureApiHttpClient(builder.Services, apiUrl);
DeepDrftPublic.Client.Startup.ConfigureContentServices(builder.Services, apiUrl);
DeepDrftPublic.Client.Startup.ConfigureDomainServices(builder.Services);
Startup.ConfigureDomainServices(builder);
+1 -5
View File
@@ -1,15 +1,11 @@
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"Default": "Information",
"Microsoft.AspNetCore": "Debug"
}
},
"AllowedHosts": "*",
"ApiUrls": {
"ContentApi": "http://localhost:12777/",
"SqlApi": "https://localhost:5002/"
},
"ForwardedHeaders": {
"DisableHttpsRedirection": "true"
}