diff --git a/src/Opserver.Web/Controllers/HomeController.cs b/src/Opserver.Web/Controllers/HomeController.cs index b045e764..c456aacd 100644 --- a/src/Opserver.Web/Controllers/HomeController.cs +++ b/src/Opserver.Web/Controllers/HomeController.cs @@ -14,7 +14,6 @@ using Opserver.Data.Elastic; using Opserver.Data.HAProxy; using System.Collections.Generic; -using System.Reflection; namespace Opserver.Controllers { @@ -153,18 +152,5 @@ public ActionResult ErrorTestPage() throw new NotImplementedException("I AM IMPLEMENTED, I WAS BORN TO THROW ERRORS!"); #pragma warning restore RCS1079 // Throwing of new NotImplementedException. } - - [Route("assemblies")] - public ActionResult Assemblies() - { - Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); - var result = new System.Text.StringBuilder(); - foreach (Assembly assembly in assemblies) - { - result.AppendLine($"{assembly.FullName} - v{assembly.GetName().Version}"); - } - - return Content(result.ToString()); - } } } diff --git a/src/Opserver.Web/opserverSettings.json b/src/Opserver.Web/opserverSettings.json index 82cf7950..3efc89ba 100644 --- a/src/Opserver.Web/opserverSettings.json +++ b/src/Opserver.Web/opserverSettings.json @@ -1,20 +1,17 @@ { "ForwardedHeaders": { - "KnownNetworks": [ "10.0.0.0/16" ], + "KnownNetworks": ["10.0.0.0/16"], "KnownProxies": [], "ForwardedHeaders": "All" }, - "Security": { - "Provider": "EveryonesAnAdmin" - }, "Modules": { /* Configuration for the SQL Server dashboard */ "Sql": { - "defaultConnectionString": "Data Source=$ServerName$;Initial Catalog=master;Integrated Security=SSPI;TrustServerCertificate=True", - "refreshIntervalSeconds": 30, - "instances": [ - { "name": "localhost" } - ] + //"defaultConnectionString": "Data Source=$ServerName$;Initial Catalog=master;Integrated Security=SSPI;", + //"refreshIntervalSeconds": 30, + //"instances": [ + // { "name": "localhost" } + //] }, /* Configuration for the Redis dashboard */ "Redis": {