Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.11" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.InMemory" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.12" />
<PackageVersion Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.23.0" />
<PackageVersion Include="NLog.Web.AspNetCore" Version="6.2.0" />
<PackageVersion Include="Shared" Version="2026.8.3" />
<PackageVersion Include="Shared.Logger" Version="2026.8.3" />
<PackageVersion Include="Shared.Results.Web" Version="2026.8.3" />
<PackageVersion Include="Shared" Version="2026.9.3" />
<PackageVersion Include="Shared.Logger" Version="2026.9.3" />
<PackageVersion Include="Shared.Results.Web" Version="2026.9.3" />
<PackageVersion Include="Swashbuckle.AspNetCore" Version="10.2.3" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.11" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.11" />
<PackageVersion Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.11" />
<PackageVersion Include="Sentry.AspNetCore" Version="6.9.0" />
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.12" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.12" />
<PackageVersion Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.12" />
<PackageVersion Include="Sentry.AspNetCore" Version="6.11.0" />
</ItemGroup>
</Project>
10 changes: 10 additions & 0 deletions MobileConfiguration/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using System.ComponentModel;
using System.Reflection;
using System.Text.Json;
using Shared.Monitoring;
using ILogger = Microsoft.Extensions.Logging.ILogger;
using LogLevel = Microsoft.Extensions.Logging.LogLevel;

Expand Down Expand Up @@ -138,6 +139,8 @@
builder.Services.ConfigureHttpJsonOptions(options => {
JsonSerializerConfiguration.ConfigureMinimalApi(options.SerializerOptions);
});
builder.Services.AddUptimeKuma();

var app = builder.Build();

var serialiser = app.Services.GetRequiredService<IStringSerialiser>();
Expand Down Expand Up @@ -165,6 +168,13 @@

InitializeDatabase(app).Wait(CancellationToken.None);

app.Lifetime.ApplicationStarted.Register(() =>
{
app.RegisterWithUptimeKumaAsync()
.GetAwaiter()
.GetResult();
});

app.Run();


Expand Down
7 changes: 7 additions & 0 deletions MobileConfiguration/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@
},
"ConnectionStrings": {
"ConfigurationDatabase": "server=192.168.1.163;user id=sa;password=Sc0tland;database=ConfigurationHost;Encrypt=false"
},
"UptimeKuma": {
"Monitor": {
"Name": "Mobile Configuration",
"Url": "http://localhost:9200/health",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Map the configured health endpoint

The new monitor probes /health, but the application only maps the four /api/... routes in Program.cs; a repo-wide search finds no MapHealthChecks, UseHealthChecks, or other /health endpoint. Consequently, Uptime Kuma will receive a 404 on every probe and report this service as unavailable, so either expose a health endpoint or configure the monitor to use an existing route that returns 2xx.

Useful? React with 👍 / 👎.

"IntervalInSeconds": 60
}
}
}
Loading