29 lines
735 B
C#
29 lines
735 B
C#
|
||
using LogDashboard;
|
||
using LogDashboard.Authorization.Filters;
|
||
using Microsoft.Extensions.DependencyInjection;
|
||
|
||
namespace IRaCIS.Core.API
|
||
{
|
||
public static class LogDashboardSetup
|
||
{
|
||
public static void AddLogDashboardSetup(this IServiceCollection services)
|
||
{
|
||
//IIS 配置虚拟路径部署,会出现IIS静态文件404
|
||
services.AddLogDashboard(opt =>
|
||
{
|
||
//opt.PathMatch = "/api/LogDashboard";
|
||
opt.PathMatch = "/back/logs";
|
||
|
||
//opt.AddAuthorizationFilter(new LogDashboardBasicAuthFilter("admin", "zhizhun2018"));
|
||
|
||
//opt.AddAuthorizationFilter(new LogDashBoardAuthFilter());
|
||
|
||
|
||
|
||
});
|
||
|
||
}
|
||
}
|
||
}
|