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"));