fix 修复网关失效问题
This commit is contained in:
@ -1,17 +1,18 @@
|
||||
using KonSoft.Shared.Hosting.Gateways;
|
||||
using KonSoft.Admin;
|
||||
using KonSoft.Shared.Hosting.Gateways;
|
||||
using Volo.Abp;
|
||||
using Volo.Abp.Modularity;
|
||||
|
||||
namespace KonSoft.InternalGateway
|
||||
{
|
||||
[DependsOn(
|
||||
typeof(KonSoftSharedHostingGatewaysModule)
|
||||
typeof(KonSoftSharedHostingGatewaysModule),
|
||||
typeof(AdminHttpApiModule)
|
||||
)]
|
||||
public class InternalGatewayModule : AbpModule
|
||||
{
|
||||
public override void OnApplicationInitialization(ApplicationInitializationContext context)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,11 +10,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.22.1" />
|
||||
<PackageReference Include="Yarp.ReverseProxy" Version="2.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\modules\admin\src\KonSoft.Admin.HttpApi\KonSoft.Admin.HttpApi.csproj" />
|
||||
<ProjectReference Include="..\..\shared\KonSoft.Shared.Hosting.Gateways\KonSoft.Shared.Hosting.Gateways.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@ -22,6 +22,7 @@ try
|
||||
await builder.AddApplicationAsync<InternalGatewayModule>();
|
||||
var app = builder.Build();
|
||||
await app.InitializeApplicationAsync();
|
||||
app.MapReverseProxy();
|
||||
await app.RunAsync();
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user