mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Enable healthchecks
This commit is contained in:
parent
29facf2021
commit
594eaa72cc
4 changed files with 9 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -247,3 +247,4 @@ _Pvt_Extensions
|
||||||
# Ignore local vscode config
|
# Ignore local vscode config
|
||||||
*.vscode
|
*.vscode
|
||||||
/src/Ombi/database.json
|
/src/Ombi/database.json
|
||||||
|
/src/Ombi/healthchecksdb
|
||||||
|
|
|
@ -72,7 +72,7 @@ namespace Ombi
|
||||||
url = new ApplicationConfiguration
|
url = new ApplicationConfiguration
|
||||||
{
|
{
|
||||||
Type = ConfigurationTypes.Url,
|
Type = ConfigurationTypes.Url,
|
||||||
Value = "http://*:5000"
|
Value = "http://localhost:5000"
|
||||||
};
|
};
|
||||||
using (var tran = settingsDb.Database.BeginTransaction())
|
using (var tran = settingsDb.Database.BeginTransaction())
|
||||||
{
|
{
|
||||||
|
@ -175,8 +175,8 @@ namespace Ombi
|
||||||
{
|
{
|
||||||
[Option("host", Required = false, HelpText =
|
[Option("host", Required = false, HelpText =
|
||||||
"Set to a semicolon-separated (;) list of URL prefixes to which the server should respond. For example, http://localhost:123." +
|
"Set to a semicolon-separated (;) list of URL prefixes to which the server should respond. For example, http://localhost:123." +
|
||||||
" Use \"*\" to indicate that the server should listen for requests on any IP address or hostname using the specified port and protocol (for example, http://*:5000). " +
|
" Use \"localhost\" to indicate that the server should listen for requests on any IP address or hostname using the specified port and protocol (for example, http://localhost:5000). " +
|
||||||
"The protocol (http:// or https://) must be included with each URL. Supported formats vary between servers.", Default = "http://*:5000")]
|
"The protocol (http:// or https://) must be included with each URL. Supported formats vary between servers.", Default = "http://localhost:5000")]
|
||||||
public string Host { get; set; }
|
public string Host { get; set; }
|
||||||
|
|
||||||
[Option("storage", Required = false, HelpText = "Storage path, where we save the logs and database")]
|
[Option("storage", Required = false, HelpText = "Storage path, where we save the logs and database")]
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
},
|
},
|
||||||
"Ombi": {
|
"Ombi": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"commandLineArgs": "--host http://*:3577",
|
"commandLineArgs": "--host http://localhost:3577",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
},
|
},
|
||||||
|
|
|
@ -81,10 +81,10 @@ namespace Ombi
|
||||||
hcBuilder.AddOmbiHealthChecks();
|
hcBuilder.AddOmbiHealthChecks();
|
||||||
services.ConfigureDatabases(hcBuilder);
|
services.ConfigureDatabases(hcBuilder);
|
||||||
// Need to wait until https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/issues/410 is resolved
|
// Need to wait until https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/issues/410 is resolved
|
||||||
//services.AddHealthChecksUI(setupSettings: setup =>
|
services.AddHealthChecksUI(setupSettings: setup =>
|
||||||
//{
|
{
|
||||||
// setup.AddHealthCheckEndpoint("Ombi", "/health");
|
setup.AddHealthCheckEndpoint("Ombi", "/health");
|
||||||
//});
|
});
|
||||||
services.AddMemoryCache();
|
services.AddMemoryCache();
|
||||||
|
|
||||||
services.AddJwtAuthentication(Configuration);
|
services.AddJwtAuthentication(Configuration);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue