From 26db96894592d2d14c8bcc78c2602bac9b36e7ef Mon Sep 17 00:00:00 2001 From: kon1z Date: Sun, 12 Oct 2025 18:30:12 +0800 Subject: [PATCH] =?UTF-8?q?chore=20=E4=BC=98=E5=8C=96=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/KonSoft.AuthServer/Dockerfile | 6 ---- .../Properties/launchSettings.json | 29 ++----------------- .../Properties/launchSettings.json | 26 ----------------- .../Properties/launchSettings.json | 26 ----------------- .../KonSoft.Admin.HttpApi.Host/Dockerfile | 7 ++++- .../Properties/launchSettings.json | 14 ++------- .../Properties/launchSettings.json | 22 +++----------- .../Properties/launchSettings.json | 22 +++----------- .../Properties/launchSettings.json | 22 +++----------- .../Properties/launchSettings.json | 22 +++----------- 10 files changed, 26 insertions(+), 170 deletions(-) diff --git a/applications/KonSoft.AuthServer/Dockerfile b/applications/KonSoft.AuthServer/Dockerfile index 6b3c1e5..e3d23a4 100644 --- a/applications/KonSoft.AuthServer/Dockerfile +++ b/applications/KonSoft.AuthServer/Dockerfile @@ -1,14 +1,8 @@ -# 请参阅 https://aka.ms/customizecontainer 以了解如何自定义调试容器,以及 Visual Studio 如何使用此 Dockerfile 生成映像以更快地进行调试。 - -# 此阶段用于在快速模式(默认为调试配置)下从 VS 运行时 FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base USER $APP_UID WORKDIR /app -EXPOSE 8080 EXPOSE 8081 - -# 此阶段用于生成服务项目 FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src diff --git a/applications/KonSoft.AuthServer/Properties/launchSettings.json b/applications/KonSoft.AuthServer/Properties/launchSettings.json index ba47da3..0650d85 100644 --- a/applications/KonSoft.AuthServer/Properties/launchSettings.json +++ b/applications/KonSoft.AuthServer/Properties/launchSettings.json @@ -1,38 +1,13 @@ { + "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "KonSoft.AuthServer": { + "http": { "commandName": "Project", "launchBrowser": true, "environmentVariables": { "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 - } - }, - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "https://localhost:44322", - "sslPort": 44322 } } } \ No newline at end of file diff --git a/applications/KonSoft.BackgroundJobs/Properties/launchSettings.json b/applications/KonSoft.BackgroundJobs/Properties/launchSettings.json index 22675ba..c12c964 100644 --- a/applications/KonSoft.BackgroundJobs/Properties/launchSettings.json +++ b/applications/KonSoft.BackgroundJobs/Properties/launchSettings.json @@ -1,13 +1,5 @@ { "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:4773", - "sslPort": 44380 - } - }, "profiles": { "http": { "commandName": "Project", @@ -18,24 +10,6 @@ "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } - }, - "https": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "launchUrl": "swagger", - "applicationUrl": "https://localhost:7094;http://localhost:5243", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "swagger", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } } } } diff --git a/applications/KonSoft.BackgroundWorker/Properties/launchSettings.json b/applications/KonSoft.BackgroundWorker/Properties/launchSettings.json index 2730824..04b01ce 100644 --- a/applications/KonSoft.BackgroundWorker/Properties/launchSettings.json +++ b/applications/KonSoft.BackgroundWorker/Properties/launchSettings.json @@ -1,13 +1,5 @@ { "$schema": "http://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:22937", - "sslPort": 44300 - } - }, "profiles": { "http": { "commandName": "Project", @@ -18,24 +10,6 @@ "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } - }, - "https": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "launchUrl": "swagger", - "applicationUrl": "https://localhost:7183;http://localhost:5074", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "swagger", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } } } } diff --git a/microservices/KonSoft.Admin.HttpApi.Host/Dockerfile b/microservices/KonSoft.Admin.HttpApi.Host/Dockerfile index 9284b90..582ca45 100644 --- a/microservices/KonSoft.Admin.HttpApi.Host/Dockerfile +++ b/microservices/KonSoft.Admin.HttpApi.Host/Dockerfile @@ -2,8 +2,9 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base USER $APP_UID WORKDIR /app EXPOSE 8080 -EXPOSE 8081 + +# 此阶段用于生成服务项目 FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src @@ -15,6 +16,10 @@ COPY ["modules/admin/src/KonSoft.Admin.Domain.Shared/KonSoft.Admin.Domain.Shared COPY ["modules/admin/src/KonSoft.Admin.Application.Contracts/KonSoft.Admin.Application.Contracts.csproj", "modules/admin/src/KonSoft.Admin.Application.Contracts/"] COPY ["modules/admin/src/KonSoft.Admin.EntityFrameworkCore/KonSoft.Admin.EntityFrameworkCore.csproj", "modules/admin/src/KonSoft.Admin.EntityFrameworkCore/"] COPY ["modules/admin/src/KonSoft.Admin.HttpApi/KonSoft.Admin.HttpApi.csproj", "modules/admin/src/KonSoft.Admin.HttpApi/"] +COPY ["shared/KonSoft.Shared.Hosting.Microservices/KonSoft.Shared.Hosting.Microservices.csproj", "shared/KonSoft.Shared.Hosting.Microservices/"] +COPY ["shared/KonSoft.Shared.Hosting.AspNetCore/KonSoft.Shared.Hosting.AspNetCore.csproj", "shared/KonSoft.Shared.Hosting.AspNetCore/"] +COPY ["shared/KonSoft.Shared.Hosting/KonSoft.Shared.Hosting.csproj", "shared/KonSoft.Shared.Hosting/"] +COPY ["shared/KonSoft.Shared.Localization/KonSoft.Shared.Localization.csproj", "shared/KonSoft.Shared.Localization/"] RUN dotnet restore "./microservices/KonSoft.Admin.HttpApi.Host/KonSoft.Admin.HttpApi.Host.csproj" COPY . . WORKDIR "/src/microservices/KonSoft.Admin.HttpApi.Host" diff --git a/microservices/KonSoft.Admin.HttpApi.Host/Properties/launchSettings.json b/microservices/KonSoft.Admin.HttpApi.Host/Properties/launchSettings.json index 7c66c2b..dfbbc2f 100644 --- a/microservices/KonSoft.Admin.HttpApi.Host/Properties/launchSettings.json +++ b/microservices/KonSoft.Admin.HttpApi.Host/Properties/launchSettings.json @@ -1,23 +1,13 @@ { + "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { - "KonSoft.Admin.HttpApi.Host": { + "http": { "commandName": "Project", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, "applicationUrl": "https://localhost:44354" - }, - "Container (Dockerfile)": { - "commandName": "Docker", - "launchBrowser": true, - "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}", - "environmentVariables": { - "ASPNETCORE_HTTPS_PORTS": "8081", - "ASPNETCORE_HTTP_PORTS": "8080" - }, - "publishAllPorts": true, - "useSSL": true } } } \ No newline at end of file diff --git a/microservices/KonSoft.Dispatch.HttpApi.Host/Properties/launchSettings.json b/microservices/KonSoft.Dispatch.HttpApi.Host/Properties/launchSettings.json index 8856199..c49d043 100644 --- a/microservices/KonSoft.Dispatch.HttpApi.Host/Properties/launchSettings.json +++ b/microservices/KonSoft.Dispatch.HttpApi.Host/Properties/launchSettings.json @@ -1,27 +1,13 @@ { - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "https://localhost:44331", - "sslPort": 44331 - } - }, + "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "KonSoft.Dispatch.HttpApi.Host": { + "http": { "commandName": "Project", "launchBrowser": true, - "applicationUrl": "https://localhost:44331", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } + }, + "applicationUrl": "https://localhost:44331" } } } \ No newline at end of file diff --git a/microservices/KonSoft.Payment.HttpApi.Host/Properties/launchSettings.json b/microservices/KonSoft.Payment.HttpApi.Host/Properties/launchSettings.json index 1516abd..b5f45df 100644 --- a/microservices/KonSoft.Payment.HttpApi.Host/Properties/launchSettings.json +++ b/microservices/KonSoft.Payment.HttpApi.Host/Properties/launchSettings.json @@ -1,27 +1,13 @@ { - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "https://localhost:44326", - "sslPort": 44326 - } - }, + "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "KonSoft.Payment.HttpApi.Host": { + "http": { "commandName": "Project", "launchBrowser": true, - "applicationUrl": "https://localhost:44326", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } + }, + "applicationUrl": "https://localhost:44326" } } } \ No newline at end of file diff --git a/microservices/KonSoft.Report.HttpApi.Host/Properties/launchSettings.json b/microservices/KonSoft.Report.HttpApi.Host/Properties/launchSettings.json index 1dda845..8748485 100644 --- a/microservices/KonSoft.Report.HttpApi.Host/Properties/launchSettings.json +++ b/microservices/KonSoft.Report.HttpApi.Host/Properties/launchSettings.json @@ -1,27 +1,13 @@ { - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "https://localhost:44320", - "sslPort": 44320 - } - }, + "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "KonSoft.Report.HttpApi.Host": { + "http": { "commandName": "Project", "launchBrowser": true, - "applicationUrl": "https://localhost:44320", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } + }, + "applicationUrl": "https://localhost:44320" } } } \ No newline at end of file diff --git a/microservices/KonSoft.TenantManagement.HttpApi.Host/Properties/launchSettings.json b/microservices/KonSoft.TenantManagement.HttpApi.Host/Properties/launchSettings.json index fc76879..444a9fe 100644 --- a/microservices/KonSoft.TenantManagement.HttpApi.Host/Properties/launchSettings.json +++ b/microservices/KonSoft.TenantManagement.HttpApi.Host/Properties/launchSettings.json @@ -1,27 +1,13 @@ { - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "https://localhost:44348", - "sslPort": 44348 - } - }, + "$schema": "http://json.schemastore.org/launchsettings.json", "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "KonSoft.TenantManagement.HttpApi.Host": { + "http": { "commandName": "Project", "launchBrowser": true, - "applicationUrl": "https://localhost:44348", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" - } + }, + "applicationUrl": "https://localhost:44348" } } } \ No newline at end of file