From a084a6b49b683165e653d62b9d36be9303f56da8 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 24 Aug 2023 16:36:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.API/Startup.cs | 4 ++-- IRaCIS.Core.API/_PipelineExtensions/HangfireConfig.cs | 2 +- IRaCIS.Core.API/_ServiceExtensions/LogDashboardSetup.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/IRaCIS.Core.API/Startup.cs b/IRaCIS.Core.API/Startup.cs index 3bde16d4b..79388a7a5 100644 --- a/IRaCIS.Core.API/Startup.cs +++ b/IRaCIS.Core.API/Startup.cs @@ -167,7 +167,7 @@ namespace IRaCIS.Core.API // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { - app.UsePathBase(PathString.FromUriComponent("/back")); + //app.UsePathBase(PathString.FromUriComponent("/back")); //ػ app.UseLocalization(); @@ -184,7 +184,7 @@ namespace IRaCIS.Core.API //LogDashboard - app.UseLogDashboard("/LogDashboard"); + app.UseLogDashboard("/back/logs"); //hangfire app.UseHangfireConfig(env); diff --git a/IRaCIS.Core.API/_PipelineExtensions/HangfireConfig.cs b/IRaCIS.Core.API/_PipelineExtensions/HangfireConfig.cs index e235774c0..b233bdd82 100644 --- a/IRaCIS.Core.API/_PipelineExtensions/HangfireConfig.cs +++ b/IRaCIS.Core.API/_PipelineExtensions/HangfireConfig.cs @@ -18,7 +18,7 @@ namespace IRaCIS.Core.API { - app.UseHangfireDashboard("/hangfire", new DashboardOptions() + app.UseHangfireDashboard("/back/hangfire", new DashboardOptions() { //直接访问,没有带token 获取不到用户身份信息,所以这种自定义授权暂时没法使用 //Authorization = new[] { new hangfireAuthorizationFilter() } diff --git a/IRaCIS.Core.API/_ServiceExtensions/LogDashboardSetup.cs b/IRaCIS.Core.API/_ServiceExtensions/LogDashboardSetup.cs index cf067db5f..4192a45e4 100644 --- a/IRaCIS.Core.API/_ServiceExtensions/LogDashboardSetup.cs +++ b/IRaCIS.Core.API/_ServiceExtensions/LogDashboardSetup.cs @@ -13,7 +13,7 @@ namespace IRaCIS.Core.API services.AddLogDashboard(opt => { //opt.PathMatch = "/api/LogDashboard"; - opt.PathMatch = "/LogDashboard"; + opt.PathMatch = "/back/logs"; //opt.AddAuthorizationFilter(new LogDashboardBasicAuthFilter("admin", "zhizhun2018"));