diff --git a/.gitignore b/.gitignore index dbf0d54e0..1a2574bf5 100644 --- a/.gitignore +++ b/.gitignore @@ -247,3 +247,4 @@ _Pvt_Extensions # Ignore local vscode config *.vscode /src/Ombi/database.json +/src/Ombi/healthchecksdb diff --git a/src/Ombi/Program.cs b/src/Ombi/Program.cs index 6ddce97ae..04243a317 100644 --- a/src/Ombi/Program.cs +++ b/src/Ombi/Program.cs @@ -72,7 +72,7 @@ namespace Ombi url = new ApplicationConfiguration { Type = ConfigurationTypes.Url, - Value = "http://*:5000" + Value = "http://localhost:5000" }; using (var tran = settingsDb.Database.BeginTransaction()) { @@ -175,8 +175,8 @@ namespace Ombi { [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." + - " 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). " + - "The protocol (http:// or https://) must be included with each URL. Supported formats vary between servers.", Default = "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://localhost:5000")] public string Host { get; set; } [Option("storage", Required = false, HelpText = "Storage path, where we save the logs and database")] diff --git a/src/Ombi/Properties/launchSettings.json b/src/Ombi/Properties/launchSettings.json index 6ceec857f..b3899f8c3 100644 --- a/src/Ombi/Properties/launchSettings.json +++ b/src/Ombi/Properties/launchSettings.json @@ -22,7 +22,7 @@ }, "Ombi": { "commandName": "Project", - "commandLineArgs": "--host http://*:3577", + "commandLineArgs": "--host http://localhost:3577", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, diff --git a/src/Ombi/Startup.cs b/src/Ombi/Startup.cs index 618032bda..8729e9cb8 100644 --- a/src/Ombi/Startup.cs +++ b/src/Ombi/Startup.cs @@ -81,10 +81,10 @@ namespace Ombi 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);