测试路径
This commit is contained in:
@@ -167,7 +167,7 @@ namespace IRaCIS.Core.API
|
|||||||
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
|
||||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||||
{
|
{
|
||||||
app.UsePathBase(PathString.FromUriComponent("/back"));
|
//app.UsePathBase(PathString.FromUriComponent("/back"));
|
||||||
|
|
||||||
//本地化
|
//本地化
|
||||||
app.UseLocalization();
|
app.UseLocalization();
|
||||||
@@ -184,7 +184,7 @@ namespace IRaCIS.Core.API
|
|||||||
|
|
||||||
|
|
||||||
//LogDashboard
|
//LogDashboard
|
||||||
app.UseLogDashboard("/LogDashboard");
|
app.UseLogDashboard("/back/logs");
|
||||||
|
|
||||||
//hangfire
|
//hangfire
|
||||||
app.UseHangfireConfig(env);
|
app.UseHangfireConfig(env);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ namespace IRaCIS.Core.API
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
app.UseHangfireDashboard("/hangfire", new DashboardOptions()
|
app.UseHangfireDashboard("/back/hangfire", new DashboardOptions()
|
||||||
{
|
{
|
||||||
//直接访问,没有带token 获取不到用户身份信息,所以这种自定义授权暂时没法使用
|
//直接访问,没有带token 获取不到用户身份信息,所以这种自定义授权暂时没法使用
|
||||||
//Authorization = new[] { new hangfireAuthorizationFilter() }
|
//Authorization = new[] { new hangfireAuthorizationFilter() }
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace IRaCIS.Core.API
|
|||||||
services.AddLogDashboard(opt =>
|
services.AddLogDashboard(opt =>
|
||||||
{
|
{
|
||||||
//opt.PathMatch = "/api/LogDashboard";
|
//opt.PathMatch = "/api/LogDashboard";
|
||||||
opt.PathMatch = "/LogDashboard";
|
opt.PathMatch = "/back/logs";
|
||||||
|
|
||||||
//opt.AddAuthorizationFilter(new LogDashboardBasicAuthFilter("admin", "zhizhun2018"));
|
//opt.AddAuthorizationFilter(new LogDashboardBasicAuthFilter("admin", "zhizhun2018"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user