OrleansDashboard
OrleansDashboard copied to clipboard
Orleans Dashboard behind an AzureLoad Balancer
Hello! I want to bring a little attention to placing an Orleans Dashboard behind an Application Gateway:
I've set up an Azure Application gateway pointing to an application that uses the Orleans dashboard.
Technologies being used:
- Microsoft Application Gateway
- Microsoft Managed Service Fabric Clusters
- .NET version 7
- Microsoft OrleansDashboard
Application Gateway: I know I have the correct:
- Backend Pools
- Backend Settings
- Rulesets
- Listeners
- Open ports, required Vnet Integrations, etc
Here's what a basic request would look for accessing the OrleansDashboard on the managed service fabric cluster
https://subdomain.domain.com/RuleWithinAppGWToForwardAllRequestsTo/orleans
First, what we experienced was what is detailed below:
The first request sent receives a '200' response but the subrequests following it for the OrleansDashboard all receive multiple 301s and 404s
- First request received '200'
- Second request and all others receive '301s' and '404s'
I found a hack basically where within the Orleans package of my application, I've added to the /Orleans and replaced it with my desired directory or path I want to use when accessing the Orleans dashboard:
siloBuilder.UseDashboard(options =>
{
options.HostSelf = true;
options.HideTrace = false;
options.ScriptPath = orleansSettings.ScriptPath;
});
ScriptPath: "/RuleWithinAppGWToForwardAllRequestsTo/orleans"
Before '/Orleans' After within the Orleans section of my application '/RuleWithinAppGWToForwardAllRequestsTo/Orleans' When I reupload my application to the managed service fabric cluster, it works perfectly.
My request:
Something is happening with the OrleansDashboard that it drops the /RuleWithinAppGWToForwardAllRequestsTo/ part of my request.
This is a simple hack, but I want to determine why the OrleansDashboard drops the directory I've configured in the application gateway.