From e79925f4026c5b2b7943b34659a0f59d3760e0c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=85=86=E9=91=AB?= Date: Wed, 22 Oct 2025 20:56:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Properties/launchSettings.json | 15 +++++++++++++-- .../InternalGatewayModule.cs | 7 ++++--- .../KonSoft.InternalGateway.csproj | 6 +----- gateways/KonSoft.InternalGateway/Program.cs | 1 + .../KonSoft.Shared.Hosting.Gateways.csproj | 4 ++++ 5 files changed, 23 insertions(+), 10 deletions(-) diff --git a/applications/KonSoft.AuthServer/Properties/launchSettings.json b/applications/KonSoft.AuthServer/Properties/launchSettings.json index 0650d85..60786c7 100644 --- a/applications/KonSoft.AuthServer/Properties/launchSettings.json +++ b/applications/KonSoft.AuthServer/Properties/launchSettings.json @@ -1,5 +1,4 @@ { - "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { "http": { "commandName": "Project", @@ -8,6 +7,18 @@ "ASPNETCORE_ENVIRONMENT": "Development" }, "applicationUrl": "https://localhost:44322" + }, + "Container (Dockerfile)": { + "commandName": "Docker", + "launchBrowser": true, + "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}", + "environmentVariables": { + "ASPNETCORE_HTTPS_PORTS": "8081", + "ASPNETCORE_HTTP_PORTS": "8080" + }, + "publishAllPorts": true, + "useSSL": true } - } + }, + "$schema": "http://json.schemastore.org/launchsettings.json" } \ No newline at end of file diff --git a/gateways/KonSoft.InternalGateway/InternalGatewayModule.cs b/gateways/KonSoft.InternalGateway/InternalGatewayModule.cs index f046065..e7205da 100644 --- a/gateways/KonSoft.InternalGateway/InternalGatewayModule.cs +++ b/gateways/KonSoft.InternalGateway/InternalGatewayModule.cs @@ -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) { - } } } diff --git a/gateways/KonSoft.InternalGateway/KonSoft.InternalGateway.csproj b/gateways/KonSoft.InternalGateway/KonSoft.InternalGateway.csproj index 4bd0fa3..022a122 100644 --- a/gateways/KonSoft.InternalGateway/KonSoft.InternalGateway.csproj +++ b/gateways/KonSoft.InternalGateway/KonSoft.InternalGateway.csproj @@ -10,11 +10,7 @@ - - - - - + diff --git a/gateways/KonSoft.InternalGateway/Program.cs b/gateways/KonSoft.InternalGateway/Program.cs index ae03f33..56e1cc6 100644 --- a/gateways/KonSoft.InternalGateway/Program.cs +++ b/gateways/KonSoft.InternalGateway/Program.cs @@ -22,6 +22,7 @@ try await builder.AddApplicationAsync(); var app = builder.Build(); await app.InitializeApplicationAsync(); + app.MapReverseProxy(); await app.RunAsync(); return 0; diff --git a/shared/KonSoft.Shared.Hosting.Gateways/KonSoft.Shared.Hosting.Gateways.csproj b/shared/KonSoft.Shared.Hosting.Gateways/KonSoft.Shared.Hosting.Gateways.csproj index d380fd6..dc74281 100644 --- a/shared/KonSoft.Shared.Hosting.Gateways/KonSoft.Shared.Hosting.Gateways.csproj +++ b/shared/KonSoft.Shared.Hosting.Gateways/KonSoft.Shared.Hosting.Gateways.csproj @@ -6,6 +6,10 @@ enable + + + +