Hi,
Can you share the project with me? shiwei.liang@volosoft.com, I will check it out. I think this can save you time.
Sorry, I am missing a verb.
You can remove the UpstreamHttpMethod to allow any verbs:
{
"ServiceKey": "Signalr Service",
"DownstreamPathTemplate": "/signalr-hubs/{everything}",
"DownstreamScheme": "wss",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 44361
}
],
"UpstreamPathTemplate": "/signalr-hubs/{everything}"
}
My email is shiwei.liang@volosoft.com
Hi,
Can you share the project with me? I will check it out
Update the gateway config file:
{
"ServiceKey": "Signalr Service",
"DownstreamPathTemplate": "/signalr-hubs/{everything}",
"DownstreamScheme": "wss",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 44361
}
],
"UpstreamPathTemplate": "/signalr-hubs/{everything}",
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ]
},
Try:
app.UseSwaggerUI(options =>
{
var configuration = context.ServiceProvider.GetRequiredService<IConfiguration>();
var routes = configuration.GetSection("Routes").Get<List<OcelotConfiguration>>();
var routedServices = routes
.GroupBy(t => t.ServiceKey)
.Select(r => r.First())
.Distinct();
foreach (var config in routedServices.OrderBy(q => q.ServiceKey))
{
if (config.DownstreamHostAndPorts != null && config.DownstreamScheme != "wss")
{
var url = $"{config.DownstreamScheme}://{config.DownstreamHostAndPorts.FirstOrDefault()?.Host}:{config.DownstreamHostAndPorts.FirstOrDefault()?.Port}";
if (!env.IsDevelopment())
{
url = $"https://{config.DownstreamHostAndPorts.FirstOrDefault()?.Host}";
}
options.SwaggerEndpoint($"{url}/swagger/v1/swagger.json", $"{config.ServiceKey} API");
}
options.RoutePrefix = string.Empty;
options.OAuthClientId(configuration["AuthServer:SwaggerClientId"]);
}
});
Hi,
It's just an example; you should replace the builder.Configuration["RemoteServices:Chat:BaseUrl"]; with the real URL.
Gateway URL or Product service URL.
Hi,
You should write this in the Blazor app.
and should i update anything in app settings of Product service?
No, you don't.
Could not find VoloChatAvatarManager.createCanvasForUser
You can try running the abp bundle command in the Blazor app folder.