Skip to content

Commit e898bad

Browse files
committed
fix: error on health check
1 parent a5d7c1d commit e898bad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/OA/Startup.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ public void ConfigureServices(IServiceCollection services)
5959
.AddDbContextCheck<ApplicationDbContext>(name: "Application DB Context", failureStatus: HealthStatus.Degraded)
6060
.AddUrlGroup(new Uri("https://amitpnk.github.io/"), name: "My personal website", failureStatus: HealthStatus.Degraded)
6161
.AddSqlServer(Configuration.GetConnectionString("OnionArchConn"));
62-
//.AddSqlServer(configuration.GetConnectionString("IdentityConnection"));
6362

6463
services.AddHealthChecksUI(setupSettings: setup =>
6564
{
66-
setup.AddHealthCheckEndpoint("Basic Health Check", $"http://localhost:44356/healthz");
65+
setup.AddHealthCheckEndpoint("Basic Health Check", $"/healthz");
6766
});
6867

6968
services.AddFeatureManagement();
@@ -110,7 +109,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF
110109
{
111110
setup.ApiPath = "/healthcheck";
112111
setup.UIPath = "/healthcheck-ui";
113-
setup.AddCustomStylesheet("./Customization/custom.css");
112+
//setup.AddCustomStylesheet("Customization/custom.css");
114113
});
115114

116115

0 commit comments

Comments
 (0)