diff --git a/gateways/KonSoft.InternalGateway/Program.cs b/gateways/KonSoft.InternalGateway/Program.cs index 85a050f..1aa52aa 100644 --- a/gateways/KonSoft.InternalGateway/Program.cs +++ b/gateways/KonSoft.InternalGateway/Program.cs @@ -18,7 +18,6 @@ try }); builder.Host .AddAppSettingsSecretsJson() - .AddYarpJson() .UseAutofac() .UseSerilog(); diff --git a/shared/KonSoft.Shared.Hosting.Gateways/AbpHostingHostBuilderExtensions.cs b/shared/KonSoft.Shared.Hosting.Gateways/AbpHostingHostBuilderExtensions.cs deleted file mode 100644 index a716374..0000000 --- a/shared/KonSoft.Shared.Hosting.Gateways/AbpHostingHostBuilderExtensions.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Hosting; - -namespace KonSoft.Shared.Hosting.Gateways -{ - public static class AbpHostingHostBuilderExtensions - { - public const string AppYarpJsonPath = "yarp.json"; - - public static IHostBuilder AddYarpJson( - this IHostBuilder hostBuilder, - bool optional = true, - bool reloadOnChange = true, - string path = AppYarpJsonPath) - { - return hostBuilder.ConfigureAppConfiguration((_, builder) => - { - builder.AddJsonFile( - path: AppYarpJsonPath, - optional: optional, - reloadOnChange: reloadOnChange - ) - .AddEnvironmentVariables(); - }); - } - } -} diff --git a/shared/KonSoft.Shared.Hosting.Gateways/KonSoftSharedHostingGatewaysModule.cs b/shared/KonSoft.Shared.Hosting.Gateways/KonSoftSharedHostingGatewaysModule.cs index d9ad282..a13fec5 100644 --- a/shared/KonSoft.Shared.Hosting.Gateways/KonSoftSharedHostingGatewaysModule.cs +++ b/shared/KonSoft.Shared.Hosting.Gateways/KonSoftSharedHostingGatewaysModule.cs @@ -16,7 +16,7 @@ public class KonSoftSharedHostingGatewaysModule : AbpModule context.Services.AddHttpForwarderWithServiceDiscovery(); context.Services.AddReverseProxy() - .LoadFromConfig(configuration.GetSection("ReverseProxy")) - .AddServiceDiscoveryDestinationResolver(); + .LoadFromConfig(configuration.GetSection("ReverseProxy")); + //.AddServiceDiscoveryDestinationResolver(); } } \ No newline at end of file