Hosting Dashboard from child path (https://domain/my/child/path) does not appear to work correctly
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
I am trying to host the aspire dashboard from k8s running on AKS using nginx as an ingress controller and running into some issues. I would essentially like to host the dashboard from:
https://mydomainhere/dev/aspire/dashboard
Using aspirate to generate some basic config I have managed to successfully deploy the dashboard out via helm and can access it from the above URL - it however immediately redirects to ```https://mydomainhere/structuredlogs```
I believe it should be trying to redirect to ```https://mydomainhere/dev/aspire/dashboard/structuredlogs```
I can put that directly into the browser and it then fails due to it trying to load js/css resources from ```https://mydomainhere/```
I presume this might be related to it deploying out with a ``````
I tried to see if setting ```ASPNETCORE_URLS``` as mentioned here https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/dashboard/configuration#common-configuration might help but that just leads to an error on startup:
```
Hosting failed to start
System.InvalidOperationException: A path base can only be configured using IApplicationBuilder.UsePathBase()
```
I don't think I can "fix" this issue via ingress config as I have multiple other web apps running so can't just, for example, redirect any traffic to ```https://mydomainhere/``` back out to ```https://mydomainhere/dev/aspire/dashboard```
Is this a scenario that is not currently supported? Any advice would be greatly appreciated, thank you!
Contributor guide
Assessment
This issue has not been assessed yet.