|
|
@@ -1,115 +0,0 @@
|
|
|
-{
|
|
|
- "$schema": "https://gitee.com/dotnetchina/Furion/raw/net6/schemas/v3/furion-schema.json",
|
|
|
-
|
|
|
- "SpecificationDocumentSettings": {
|
|
|
- "DocumentTitle": "Admin.NET 框架",
|
|
|
- "GroupOpenApiInfos": [
|
|
|
- {
|
|
|
- "Group": "Default",
|
|
|
- "Title": "Admin.NET",
|
|
|
- "Description": "让 .NET 开发更简单、更通用、更流行。前后端分离架构(.NET6/Vue3),开箱即用紧随前沿技术。<br/><a href='https://gitee.com/zuohuaijun/Admin.NET/'>https://gitee.com/zuohuaijun/Admin.NET</a>",
|
|
|
- "Version": "1.0.0",
|
|
|
- "TermsOfService": "https://dotnetchina.gitee.io/furion/",
|
|
|
- "Contact": {
|
|
|
- "Name": "zuohuaijun",
|
|
|
- "Url": "https://gitee.com/zuohuaijun/Admin.NET",
|
|
|
- "Email": "515096995@qq.com"
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- "Group": "All Groups",
|
|
|
- "Title": "所有接口",
|
|
|
- "Description": "让 .NET 开发更简单、更通用、更流行。前后端分离架构(.NET6/Vue3),开箱即用紧随前沿技术。<br/><a href='https://gitee.com/zuohuaijun/Admin.NET/'>https://gitee.com/zuohuaijun/Admin.NET</a>",
|
|
|
- "Version": "1.0.0",
|
|
|
- "TermsOfService": "https://dotnetchina.gitee.io/furion/",
|
|
|
- "Contact": {
|
|
|
- "Name": "zuohuaijun",
|
|
|
- "Url": "https://gitee.com/zuohuaijun/Admin.NET",
|
|
|
- "Email": "515096995@qq.com"
|
|
|
- }
|
|
|
- }
|
|
|
- ],
|
|
|
- "EnableAllGroups": true,
|
|
|
- "LoginInfo": {
|
|
|
- "Enabled": false, // 是否开启Swagger登录
|
|
|
- "CheckUrl": "/Swagger/CheckUrl",
|
|
|
- "SubmitUrl": "/Swagger/SubmitUrl",
|
|
|
- "UserName": "admin",
|
|
|
- "Password": "000000"
|
|
|
- }
|
|
|
- },
|
|
|
- "AppSettings": {
|
|
|
- "InjectSpecificationDocument": true // 生产环境是否开启Swagger
|
|
|
- },
|
|
|
- "DynamicApiControllerSettings": {
|
|
|
- "LowercaseRoute": false,
|
|
|
- "KeepName": true,
|
|
|
- "AsLowerCamelCase": true // 小驼峰路由路径
|
|
|
- },
|
|
|
- "FriendlyExceptionSettings": {
|
|
|
- "DefaultErrorMessage": "系统异常,请联系管理员",
|
|
|
- "ThrowBah": true,
|
|
|
- "LogError": false // 是否输出异常日志,默认true
|
|
|
- },
|
|
|
- "LocalizationSettings": {
|
|
|
- "SupportedCultures": [ "zh-CN", "en-US" ], // 语言列表
|
|
|
- "DefaultCulture": "zh-CN" // 默认语言
|
|
|
- },
|
|
|
- "JWTSettings": {
|
|
|
- "ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
|
|
|
- "IssuerSigningKey": "3c1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥,string 类型,必须是复杂密钥,长度大于16
|
|
|
- "ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true
|
|
|
- "ValidIssuer": "Admin.NET", // 签发方,string 类型
|
|
|
- "ValidateAudience": true, // 是否验证签收方,bool 类型,默认true
|
|
|
- "ValidAudience": "Admin.NET", // 签收方,string 类型
|
|
|
- "ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true
|
|
|
- "ExpiredTime": 10080, // 过期时间,long 类型,单位分钟,默认20分钟
|
|
|
- "ClockSkew": 5 // 过期时间容错值,long 类型,单位秒,默认5秒
|
|
|
- },
|
|
|
- "RefreshToken": {
|
|
|
- "ExpiredTime": 20160 // 过期时间单位分钟(一般 refresh_token 的有效时间 > 2 * access_token 的有效时间)
|
|
|
- },
|
|
|
- "CorsAccessorSettings": {
|
|
|
- "WithExposedHeaders": [ "Content-Disposition" ], // 如果前端不代理且是axios请求
|
|
|
- "SignalRSupport": true // 启用 SignalR 跨域支持
|
|
|
- },
|
|
|
- "Cache": {
|
|
|
- "CacheType": "Memory", // Memory、Redis
|
|
|
- "RedisConnectionString": "server=127.0.0.1:6379;password=;db=5;"
|
|
|
- },
|
|
|
- "SnowId": {
|
|
|
- "WorkerId": 5 // 取值范围0~63,默认1
|
|
|
- },
|
|
|
- "Upload": {
|
|
|
- "Path": "upload/{yyyy}/{MM}/{dd}", // 文件上传目录
|
|
|
- "MaxSize": 1048576,
|
|
|
- "ContentType": [ "image/jpg", "image/png", "image/jpeg", "image/gif", "image/bmp", "text/plain", "application/pdf", "application/msword", "application/vnd.ms-excel", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ]
|
|
|
- },
|
|
|
- "OSSProvider": {
|
|
|
- "IsEnable": false,
|
|
|
- "Provider": "Aliyun", // Invalid/Minio/Aliyun/QCloud/Qiniu/HuaweiCloud
|
|
|
- "Endpoint": "",
|
|
|
- "Region": "",
|
|
|
- "AccessKey": "",
|
|
|
- "SecretKey": "",
|
|
|
- "IsEnableHttps": true,
|
|
|
- "IsEnableCache": true,
|
|
|
- "Bucket": ""
|
|
|
- },
|
|
|
- "Email": {
|
|
|
- "Server": "smtp.163.com", // 主机
|
|
|
- "Port": 465, // 端口 465/994 25
|
|
|
- "SenderName": "系统邮件", // 发送者名称
|
|
|
- "SenderEmail": "zuohuaijun@163.com", // 发件者邮箱
|
|
|
- "ToEmail": "515096995@qq.com", // 接收人邮箱
|
|
|
- "Account": "", // 发件邮箱账号
|
|
|
- "Password": "", // 发件邮箱密码
|
|
|
- "Security": true // 启用SSL和TLS
|
|
|
- },
|
|
|
- "OAuth": {
|
|
|
- "Weixin": {
|
|
|
- "ClientId": "wxd77174ddc828b65b",
|
|
|
- "ClientSecret": "6224502b24d31acf8b4e0dc8e482317c"
|
|
|
- }
|
|
|
- }
|
|
|
-}
|