26 lines
731 B
C#
26 lines
731 B
C#
|
|
//using LogDashboard;
|
|
//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 = "/LogDashboard";
|
|
|
|
// //opt.AddAuthorizationFilter(new LogDashboardBasicAuthFilter("admin", "zhizhun2018"));
|
|
|
|
// //opt.AddAuthorizationFilter(new LogDashBoardAuthFilter());
|
|
|
|
// });
|
|
|
|
// }
|
|
// }
|
|
//}
|