{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "AllowedHosts": "*", //连接字符�? "ConnectionStringsConfiguration": { "AdminAuditLogDbConnection": "Server=localhost;database=fsl_cs;uid=root;pwd=sa@admin;pooling=true;CharSet=utf8;port=3306;SslMode=none;Allow User Variables=True;AllowPublicKeyRetrieval=True;", "AdminDbConnection": "Server=localhost;database=fsl_cs;uid=root;pwd=sa@admin;pooling=true;CharSet=utf8;port=3306;SslMode=none;Allow User Variables=True;AllowPublicKeyRetrieval=True;" }, "DatabaseProviderConfiguration": { "ProviderType": "MySql" }, "SeedConfiguration": { "ApplySeed": true }, //审计日志配置 "AuditLoggingConfiguration": { "Source": "ATS.NonCustodial.Admin", "SubjectIdentifierClaim": "id", "SubjectNameClaim": "na", "ClientIdClaim": "client_id" }, //验证�? "VarifyCodeConfiguration": { //启用 "Enable": true, //字体列表 "Fonts": [ "Times New Roman", "Verdana", "Arial", "Gungsuh", "Impact" ] }, //JwtConfig "JwtConfiguration": { //发行�? "Issuer": "http://127.0.0.1:8000", //订阅�? "Audience": "http://127.0.0.1:8000", //RefreshToken受众 "RefreshTokenAudience": null, //加密Key "SymmetricSecurityKey": "ertJKl#521*a@790asD&1#0123456789", //有效�?分钟) 120 = 2小时 "Expires": 1440, //RefreshToken过期时间(分钟) 1440 = 1�? "RefreshTokenExpires": 1440, //时间歪斜,单位秒 "ClockSkew": 1 }, //文件上传配置 "UploadConfigConfiguration": { //头像�?048576=1M�? "Avatar": { "UploadPath": "../upload/admin/avatar", "RequestPath": "/upload/admin/avatar", "DateTimeFormat": "", "Format": "{Id}", "MaxSize": 1048576, "Limit": 1, "ContentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif" ] }, //image�?0485760=10M�? "Image": { "UploadPath": "../upload/admin/image", "RequestPath": "/upload/admin/image", "DateTimeFormat": "", "Format": "{Id}", "MaxSize": 10485760, "Limit": -1, "ContentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif" ] }, //文件上传格式为pdf、doc、docx、mp4(20M) "MaterialManager": { "UploadPath": "../upload/admin/materials", "RequestPath": "/upload/admin/materials", "DateTimeFormat": "", "Format": "{Id}", "MaxSize": 20971520, "Limit": -1, "ContentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "text/plain", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.wordprocessingml.template", "application/vnd.ms-word.document.macroEnabled.12", "application/vnd.ms-word.template.macroEnabled.12", "application/octet-stream", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "audio/mp4", "video/mp4", "audio/mpeg", "audio/mpeg", "audio/ogg" ] }, //公告 "Announcement": { "UploadPath": "../upload/admin/announcement", "RequestPath": "/upload/admin/announcement", "DateTimeFormat": "", "Format": "{Id}", "MaxSize": 1048576, "Limit": -1, "ContentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif" ] }, //视频(524288000=500M) "Video": { "UploadPath": "../upload/admin/video", "RequestPath": "/upload/admin/video", "DateTimeFormat": "", "Format": "{Id}", "MaxSize": 524288000, "Limit": -1, "ContentType": [ "audio/mp4", "video/mp4", "audio/mpeg", "audio/mpeg", "audio/ogg" ] } }, //程序集名称,默认 xxxx "AssemblyNames": [ "ATS.NonCustodial.AdminUi", "ATS.NonCustodial.Shared", "ATS.NonCustodial.Application", "ATS.NonCustodial.Domain.Shared", "ATS.NonCustodial.EntityFrameworkCore", "ATS.NonCustodial.Admin.QuartzJobs" ], //AopTransaction "AopConfiguration": { //事物 "Transaction": true }, //Urls "UrlsConfiguration": { "Urls": [ "http://*:5000", "http://*:8000", "http://*:5032", "http://*:8941" ], //所谓同源是�?协议+域名+端口" "CorUrls": [ "http://localhost:8002", "http://localhost:8003", "http://114.115.168.247:9111", "http://47.109.20.59:8937", "http://localhost:8080" ], "DomainUrl": "http://localhost:8000", "HubCorUrls": [] }, //统一认证授权服务�? "IdentityServerConfiguration": { //启用 "Enable": false, //地址,开发认证地址前往appconfig.Development.json修改 "Url": "https://xxxx" }, //Swagger文档 "SwaggerConfiguration": { //启用 "Enable": true, //地址 "Url": "http://localhost:8000", "Footer": "\"Copyright 2022-ATS.NonCustodial.Admin\"", "EnableMiniProfiler": true }, //日志配置 "LogConfiguration": { "EnableOperationLog": true, "EnableAuditLog": true }, //缓存配置 "CacheConfiguration": { //缓存类型 Memory = 0,Redis = 1 "Type": "Memory", //限流缓存类型 Memory = 0,Redis = 1 "TypeRateLimit": "Memory", //Redis配置 "Redis": { //连接字符�? "ConnectionString": "127.0.0.1:6379,password=,defaultDatabase=2", //限流连接字符�? "ConnectionStringRateLimit": "127.0.0.1:6379,password=,defaultDatabase=0" } }, "ipAPI": "http://ip-api.com/", //Quartz.Job "SdQuartzCronConfiguration": { //校验打卡记录Job "PunchRecordJob": { "Cron": "0 0/30 * * * ? *", //每隔30分钟执行一�? "Enable": false } } }