Skip to content

Commit

Permalink
Revert some changes that were only for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-vakil committed Nov 1, 2024
1 parent eeaedee commit 5c687d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
14 changes: 0 additions & 14 deletions src/Opserver.Web/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using Opserver.Data.Elastic;
using Opserver.Data.HAProxy;
using System.Collections.Generic;
using System.Reflection;

namespace Opserver.Controllers
{
Expand Down Expand Up @@ -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());
}
}
}
15 changes: 6 additions & 9 deletions src/Opserver.Web/opserverSettings.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 5c687d9

Please sign in to comment.