Xabaril / AspNetCore.Diagnostics.HealthChecks

Enterprise HealthChecks for ASP.NET Core Diagnostics Package
Apache License 2.0
3.98k stars 771 forks source link

HealthCheck deployed in Openshift static resources cannot be accessed #2157

Open wudiqiang2024 opened 5 months ago

wudiqiang2024 commented 5 months ago

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?