AspNetCore.Diagnostics.HealthChecks
AspNetCore.Diagnostics.HealthChecks copied to clipboard
HealthCheck deployed in Openshift static resources cannot be accessed
I deployed the HealthChecksUI project to Openshift using the .net8.0 framework.
- Pod is configured with Route, and the access address is like "https://xxxxx/app/healthcheck".
- 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?