diff --git a/EShopOnAbp.sln b/EShopOnAbp.sln
index 3a1d31cb..71103ae8 100644
--- a/EShopOnAbp.sln
+++ b/EShopOnAbp.sln
@@ -29,8 +29,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopOnAbp.IdentityService.
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopOnAbp.Shared.Hosting.Gateways", "shared\EShopOnAbp.Shared.Hosting.Gateways\EShopOnAbp.Shared.Hosting.Gateways.csproj", "{590B609C-5887-4896-9FC5-5E54A2658B18}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopOnAbp.InternalGateway", "gateways\internal\src\EShopOnAbp.InternalGateway\EShopOnAbp.InternalGateway.csproj", "{857EE54A-6116-46AA-AB34-50B19E51DB3B}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopOnAbp.WebGateway", "gateways\web\src\EShopOnAbp.WebGateway\EShopOnAbp.WebGateway.csproj", "{5D653BE4-7653-4684-B9F0-9A9B955093E5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EShopOnAbp.WebPublicGateway", "gateways\web-public\src\EShopOnAbp.WebPublicGateway\EShopOnAbp.WebPublicGateway.csproj", "{2E0B715C-3AAD-47B3-B2EB-D34CB24CBEFA}"
@@ -87,10 +85,6 @@ Global
{590B609C-5887-4896-9FC5-5E54A2658B18}.Debug|Any CPU.Build.0 = Debug|Any CPU
{590B609C-5887-4896-9FC5-5E54A2658B18}.Release|Any CPU.ActiveCfg = Release|Any CPU
{590B609C-5887-4896-9FC5-5E54A2658B18}.Release|Any CPU.Build.0 = Release|Any CPU
- {857EE54A-6116-46AA-AB34-50B19E51DB3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {857EE54A-6116-46AA-AB34-50B19E51DB3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {857EE54A-6116-46AA-AB34-50B19E51DB3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {857EE54A-6116-46AA-AB34-50B19E51DB3B}.Release|Any CPU.Build.0 = Release|Any CPU
{5D653BE4-7653-4684-B9F0-9A9B955093E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D653BE4-7653-4684-B9F0-9A9B955093E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D653BE4-7653-4684-B9F0-9A9B955093E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -133,7 +127,6 @@ Global
{9203C6CC-F491-4A9F-93B3-3BEA018D87B4} = {F415FFFD-E52D-4EBE-98DC-067C1EFFFFE3}
{FDFCA1B4-FD9D-445C-8655-3DF3F2D57CEA} = {F415FFFD-E52D-4EBE-98DC-067C1EFFFFE3}
{590B609C-5887-4896-9FC5-5E54A2658B18} = {B8B59303-2178-459B-91A8-DF353044E090}
- {857EE54A-6116-46AA-AB34-50B19E51DB3B} = {1484E912-DCF3-4568-A72C-4C7622104DB8}
{5D653BE4-7653-4684-B9F0-9A9B955093E5} = {1484E912-DCF3-4568-A72C-4C7622104DB8}
{2E0B715C-3AAD-47B3-B2EB-D34CB24CBEFA} = {1484E912-DCF3-4568-A72C-4C7622104DB8}
{969029FC-CFCF-4F95-9778-E5C69117711E} = {866DB6CC-FEA8-4CC2-A2E4-143537D197B6}
diff --git a/gateways/internal/EShopOnAbp.InternalGateway.sln b/gateways/internal/EShopOnAbp.InternalGateway.sln
deleted file mode 100644
index e04495b7..00000000
--- a/gateways/internal/EShopOnAbp.InternalGateway.sln
+++ /dev/null
@@ -1,32 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.31320.298
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{138BBFFC-09B9-49FB-9C57-E25327CCE0C1}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{A5E7F07B-7A5D-416D-A9E0-2009A48CBE2A}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EShopOnAbp.InternalGateway", "src\EShopOnAbp.InternalGateway\EShopOnAbp.InternalGateway.csproj", "{EB7B7C24-2A6D-4500-B8E0-2988EF65DC8C}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {EB7B7C24-2A6D-4500-B8E0-2988EF65DC8C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {EB7B7C24-2A6D-4500-B8E0-2988EF65DC8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EB7B7C24-2A6D-4500-B8E0-2988EF65DC8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {EB7B7C24-2A6D-4500-B8E0-2988EF65DC8C}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(NestedProjects) = preSolution
- {EB7B7C24-2A6D-4500-B8E0-2988EF65DC8C} = {138BBFFC-09B9-49FB-9C57-E25327CCE0C1}
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {1753A143-A9EF-43ED-970D-C71BAD179AE6}
- EndGlobalSection
-EndGlobal
diff --git a/gateways/internal/src/EShopOnAbp.InternalGateway/Controllers/HomeController.cs b/gateways/internal/src/EShopOnAbp.InternalGateway/Controllers/HomeController.cs
deleted file mode 100644
index a577ae25..00000000
--- a/gateways/internal/src/EShopOnAbp.InternalGateway/Controllers/HomeController.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using Microsoft.AspNetCore.Mvc;
-using Volo.Abp.AspNetCore.Mvc;
-
-namespace EShopOnAbp.InternalGateway.Controllers
-{
- public class HomeController : AbpController
- {
- public ActionResult Index()
- {
- return Redirect("/swagger");
- }
- }
-}
diff --git a/gateways/internal/src/EShopOnAbp.InternalGateway/Dockerfile b/gateways/internal/src/EShopOnAbp.InternalGateway/Dockerfile
deleted file mode 100644
index 2b7cbf5a..00000000
--- a/gateways/internal/src/EShopOnAbp.InternalGateway/Dockerfile
+++ /dev/null
@@ -1,4 +0,0 @@
- FROM mcr.microsoft.com/dotnet/aspnet:6.0
- COPY bin/Release/net6.0/publish/ app/
- WORKDIR /app
- ENTRYPOINT ["dotnet", "EShopOnAbp.InternalGateway.dll"]
\ No newline at end of file
diff --git a/gateways/internal/src/EShopOnAbp.InternalGateway/EShopOnAbp.InternalGateway.csproj b/gateways/internal/src/EShopOnAbp.InternalGateway/EShopOnAbp.InternalGateway.csproj
deleted file mode 100644
index 5e292444..00000000
--- a/gateways/internal/src/EShopOnAbp.InternalGateway/EShopOnAbp.InternalGateway.csproj
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
- net6.0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gateways/internal/src/EShopOnAbp.InternalGateway/EShopOnAbpInternalGatewayModule.cs b/gateways/internal/src/EShopOnAbp.InternalGateway/EShopOnAbpInternalGatewayModule.cs
deleted file mode 100644
index 5dfd16b0..00000000
--- a/gateways/internal/src/EShopOnAbp.InternalGateway/EShopOnAbpInternalGatewayModule.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-using EShopOnAbp.Shared.Hosting.Gateways;
-using Microsoft.AspNetCore.Builder;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
-using Ocelot.Middleware;
-using System.Collections.Generic;
-using System.Linq;
-using EShopOnAbp.Shared.Hosting.AspNetCore;
-using Volo.Abp;
-using Volo.Abp.Modularity;
-
-namespace EShopOnAbp.InternalGateway
-{
- [DependsOn(
- typeof(EShopOnAbpSharedHostingGatewaysModule)
-)]
- public class EShopOnAbpInternalGatewayModule : AbpModule
- {
- public override void ConfigureServices(ServiceConfigurationContext context)
- {
- var configuration = context.Services.GetConfiguration();
- var hostingEnvironment = context.Services.GetHostingEnvironment();
- SwaggerConfigurationHelper.Configure(context, "Internal Gateway");
- }
-
- public override void OnApplicationInitialization(ApplicationInitializationContext context)
- {
- var app = context.GetApplicationBuilder();
- var env = context.GetEnvironment();
-
- if (env.IsDevelopment())
- {
- app.UseDeveloperExceptionPage();
- }
-
- app.UseCorrelationId();
- app.UseSwagger();
- app.UseSwaggerUI(options =>
- {
- var configuration = context.ServiceProvider.GetRequiredService();
- var routes = configuration.GetSection("Routes").Get>();
-
- foreach (var config in routes.GroupBy(t => t.ServiceKey).Select(r => r.First()).Distinct())
- {
- 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.OAuthClientId(configuration["AuthServer:SwaggerClientId"]);
- options.OAuthClientSecret(configuration["AuthServer:SwaggerClientSecret"]);
- }
- });
- app.UseAbpSerilogEnrichers();
- app.MapWhen(
- ctx => ctx.Request.Path.ToString().StartsWith("/api/abp/api-definition") ||
- ctx.Request.Path.ToString().TrimEnd('/').Equals(""),
- app2 =>
- {
- app2.UseRouting();
- app2.UseConfiguredEndpoints();
- }
- );
- app.UseOcelot().Wait();
- }
- }
-}
diff --git a/gateways/internal/src/EShopOnAbp.InternalGateway/Program.cs b/gateways/internal/src/EShopOnAbp.InternalGateway/Program.cs
deleted file mode 100644
index be086550..00000000
--- a/gateways/internal/src/EShopOnAbp.InternalGateway/Program.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using EShopOnAbp.Shared.Hosting.AspNetCore;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.Hosting;
-using Serilog;
-using System;
-using System.Threading.Tasks;
-
-namespace EShopOnAbp.InternalGateway
-{
- public class Program
- {
- public static async Task Main(string[] args)
- {
- var assemblyName = typeof(Program).Assembly.GetName().Name;
-
- SerilogConfigurationHelper.Configure(assemblyName);
-
- try
- {
- Log.Information($"Starting {assemblyName}.");
- await CreateHostBuilder(args).Build().RunAsync();
- return 0;
- }
- catch (Exception ex)
- {
- Log.Fatal(ex, $"{assemblyName} terminated unexpectedly!");
- return 1;
- }
- finally
- {
- Log.CloseAndFlush();
- }
- }
-
- internal static IHostBuilder CreateHostBuilder(string[] args) =>
- Host.CreateDefaultBuilder(args)
- .ConfigureAppConfiguration(build =>
- {
- build.AddJsonFile("appsettings.secrets.json", optional: true);
- })
- .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup(); })
- .UseAutofac()
- .UseSerilog();
- }
-}
diff --git a/gateways/internal/src/EShopOnAbp.InternalGateway/Properties/launchSettings.json b/gateways/internal/src/EShopOnAbp.InternalGateway/Properties/launchSettings.json
deleted file mode 100644
index ee03a415..00000000
--- a/gateways/internal/src/EShopOnAbp.InternalGateway/Properties/launchSettings.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "$schema": "http://json.schemastore.org/launchsettings.json",
- "iisSettings": {
- "windowsAuthentication": false,
- "anonymousAuthentication": true,
- "iisExpress": {
- "applicationUrl": "https://localhost:44371",
- "sslPort": 0
- }
- },
- "profiles": {
- "IIS Express": {
- "commandName": "IISExpress",
- "launchBrowser": true,
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- }
- },
- "EShopOnAbp.InternalGateway": {
- "commandName": "Project",
- "dotnetRunMessages": "true",
- "launchBrowser": true,
- "applicationUrl": "https://localhost:44371",
- "environmentVariables": {
- "ASPNETCORE_ENVIRONMENT": "Development"
- }
- }
- }
-}
diff --git a/gateways/internal/src/EShopOnAbp.InternalGateway/Startup.cs b/gateways/internal/src/EShopOnAbp.InternalGateway/Startup.cs
deleted file mode 100644
index 11f3388c..00000000
--- a/gateways/internal/src/EShopOnAbp.InternalGateway/Startup.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using Microsoft.AspNetCore.Builder;
-using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.DependencyInjection;
-
-namespace EShopOnAbp.InternalGateway
-{
- public class Startup
- {
- public void ConfigureServices(IServiceCollection services)
- {
- services.AddApplication();
- }
-
- public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
- {
- app.InitializeApplication();
- }
- }
-}
diff --git a/gateways/internal/src/EShopOnAbp.InternalGateway/appsettings.Development.json b/gateways/internal/src/EShopOnAbp.InternalGateway/appsettings.Development.json
deleted file mode 100644
index 8983e0fc..00000000
--- a/gateways/internal/src/EShopOnAbp.InternalGateway/appsettings.Development.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "Microsoft": "Warning",
- "Microsoft.Hosting.Lifetime": "Information"
- }
- }
-}
diff --git a/gateways/internal/src/EShopOnAbp.InternalGateway/appsettings.json b/gateways/internal/src/EShopOnAbp.InternalGateway/appsettings.json
deleted file mode 100644
index fe44a29e..00000000
--- a/gateways/internal/src/EShopOnAbp.InternalGateway/appsettings.json
+++ /dev/null
@@ -1,133 +0,0 @@
-{
- "App": {
- "SelfUrl": "https://localhost:44371"
- },
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "Microsoft": "Warning",
- "Microsoft.Hosting.Lifetime": "Information"
- }
- },
- "AllowedHosts": "*",
- "Routes": [
- {
- "ServiceKey": "Identity Service",
- "DownstreamPathTemplate": "/api/identity/{everything}",
- "DownstreamScheme": "https",
- "DownstreamHostAndPorts": [
- {
- "Host": "localhost",
- "Port": 44351
- }
- ],
- "UpstreamPathTemplate": "/api/identity/{everything}",
- "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ]
- },
- {
- "ServiceKey": "Identity Service",
- "DownstreamPathTemplate": "/api/account/{everything}",
- "DownstreamScheme": "https",
- "DownstreamHostAndPorts": [
- {
- "Host": "localhost",
- "Port": 44351
- }
- ],
- "UpstreamPathTemplate": "/api/account/{everything}",
- "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ]
- },
- {
- "ServiceKey": "Saas Service",
- "DownstreamPathTemplate": "/api/saas/{everything}",
- "DownstreamScheme": "https",
- "DownstreamHostAndPorts": [
- {
- "Host": "localhost",
- "Port": 44352
- }
- ],
- "UpstreamPathTemplate": "/api/saas/{everything}",
- "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ]
- },
- {
- "ServiceKey": "Administration Service",
- "DownstreamPathTemplate": "/api/abp/{everything}",
- "DownstreamScheme": "https",
- "DownstreamHostAndPorts": [
- {
- "Host": "localhost",
- "Port": 44353
- }
- ],
- "UpstreamPathTemplate": "/api/abp/{everything}",
- "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ],
- "QoSOptions": {
- "ExceptionsAllowedBeforeBreaking": 5,
- "DurationOfBreak": 3000,
- "TimeoutValue": 2500
- }
- },
- {
- "ServiceKey": "Administration Service",
- "DownstreamPathTemplate": "/api/feature-management/{everything}",
- "DownstreamScheme": "https",
- "DownstreamHostAndPorts": [
- {
- "Host": "localhost",
- "Port": 44353
- }
- ],
- "UpstreamPathTemplate": "/api/feature-management/{everything}",
- "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ]
- },
- {
- "ServiceKey": "Administration Service",
- "DownstreamPathTemplate": "/api/permission-management/{everything}",
- "DownstreamScheme": "https",
- "DownstreamHostAndPorts": [
- {
- "Host": "localhost",
- "Port": 44353
- }
- ],
- "UpstreamPathTemplate": "/api/permission-management/{everything}",
- "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ]
- },
- {
- "ServiceKey": "Administration Service",
- "DownstreamPathTemplate": "/api/setting-management/{everything}",
- "DownstreamScheme": "https",
- "DownstreamHostAndPorts": [
- {
- "Host": "localhost",
- "Port": 44353
- }
- ],
- "UpstreamPathTemplate": "/api/setting-management/{everything}",
- "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ]
- },
- {
- "ServiceKey": "Payment Service",
- "DownstreamPathTemplate": "/api/payment/{everything}",
- "DownstreamScheme": "https",
- "DownstreamHostAndPorts": [
- {
- "Host": "localhost",
- "Port": 44357
- }
- ],
- "UpstreamPathTemplate": "/api/payment/{everything}",
- "UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ]
- }
- ],
- "GlobalConfiguration": {
- "BaseUrl": "https://localhost:44371"
- },
- "Redis": {
- "Configuration": "localhost:6379"
- },
- "ElasticSearch": {
- "Url": "http://localhost:9200"
- }
-}