diff --git a/DeepDrftPublic/Program.cs b/DeepDrftPublic/Program.cs index 095140b..36921d4 100644 --- a/DeepDrftPublic/Program.cs +++ b/DeepDrftPublic/Program.cs @@ -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); diff --git a/DeepDrftPublic/appsettings.json b/DeepDrftPublic/appsettings.json index a66335c..804e51f 100644 --- a/DeepDrftPublic/appsettings.json +++ b/DeepDrftPublic/appsettings.json @@ -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" }