mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
wip
This commit is contained in:
parent
69ead4f841
commit
118cff60af
4 changed files with 11 additions and 8 deletions
|
@ -60,7 +60,7 @@
|
|||
<ItemGroup>
|
||||
<PackageReference Include="AspNetCore.HealthChecks.MySql" Version="3.0.0" />
|
||||
<PackageReference Include="AspNetCore.HealthChecks.Sqlite" Version="3.0.0" />
|
||||
<PackageReference Include="AspNetCore.HealthChecks.UI" Version="3.0.9" />
|
||||
<PackageReference Include="AspNetCore.HealthChecks.UI" Version="3.0.11" />
|
||||
<PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="3.0.2" />
|
||||
<PackageReference Include="AutoMapper" Version="6.1.1" />
|
||||
<PackageReference Include="CommandLineParser" Version="2.6.0" />
|
||||
|
|
|
@ -80,11 +80,10 @@ namespace Ombi
|
|||
var hcBuilder = services.AddHealthChecks();
|
||||
hcBuilder.AddOmbiHealthChecks();
|
||||
services.ConfigureDatabases(hcBuilder);
|
||||
// Need to wait until https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/issues/410 is resolved
|
||||
services.AddHealthChecksUI(setupSettings: setup =>
|
||||
{
|
||||
setup.AddHealthCheckEndpoint("Ombi", "/health");
|
||||
});
|
||||
//services.AddHealthChecksUI(setupSettings: setup =>
|
||||
//{
|
||||
// setup.AddHealthCheckEndpoint("Ombi", "/health");
|
||||
//});
|
||||
services.AddMemoryCache();
|
||||
|
||||
services.AddJwtAuthentication(Configuration);
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
"LogLevel": {
|
||||
"Default": "Trace",
|
||||
"System": "Trace",
|
||||
"Microsoft": "Warning"
|
||||
"Microsoft": "Warning",
|
||||
"System.Net.Http.HttpClient.health-checks": "Information",
|
||||
"HealthChecks": "Information"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
"Default": "Information",
|
||||
"System": "Information",
|
||||
"Microsoft": "None",
|
||||
"Hangfire": "None"
|
||||
"Hangfire": "None",
|
||||
"System.Net.Http.HttpClient.health-checks": "Warning",
|
||||
"HealthChecks": "Warning"
|
||||
}
|
||||
},
|
||||
"ApplicationSettings": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue