AspNetCore.Diagnostics.HealthChecks icon indicating copy to clipboard operation
AspNetCore.Diagnostics.HealthChecks copied to clipboard

HealthCheck deployed in Openshift static resources cannot be accessed

Open wudiqiang2024 opened this issue 1 year ago • 0 comments

I deployed the HealthChecksUI project to Openshift using the .net8.0 framework.

  1. Pod is configured with Route, and the access address is like "https://xxxxx/app/healthcheck".
  2. My code is configured as: config.MapHealthChecksUI(setup => { setup.UIPath = "/app/healthcheck"; });

question: When the page accesses static resources, such as "healthchecks-bundle.js, vendors-dll.js", it will be accessed like this: https://xxxxx/app/healthcheck/ui/resources/healthchecks-bundle.js, which will not be accessible. Return status 404. But I can use the command in Openshift terminal: "curl http://localhost:8080/ui/resources/healthchecks-bundle.js" to get it. How should I configure this?

wudiqiang2024 avatar Feb 09 '24 06:02 wudiqiang2024