AdminNETConfig.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "$schema": "https://gitee.com/dotnetchina/Furion/raw/net6/schemas/v3/furion-schema.json",
  3. "SpecificationDocumentSettings": {
  4. "DocumentTitle": "Admin.NET 框架",
  5. "GroupOpenApiInfos": [
  6. {
  7. "Group": "Default",
  8. "Title": "Admin.NET",
  9. "Description": "让 .NET 开发更简单、更通用、更流行。前后端分离架构(.NET6/Vue3),开箱即用紧随前沿技术。<br/><a href='https://gitee.com/zuohuaijun/Admin.NET/'>https://gitee.com/zuohuaijun/Admin.NET</a>",
  10. "Version": "1.0.0",
  11. "TermsOfService": "https://dotnetchina.gitee.io/furion/",
  12. "Contact": {
  13. "Name": "zuohuaijun",
  14. "Url": "https://gitee.com/zuohuaijun/Admin.NET",
  15. "Email": "515096995@qq.com"
  16. }
  17. },
  18. {
  19. "Group": "All Groups",
  20. "Title": "所有接口",
  21. "Description": "让 .NET 开发更简单、更通用、更流行。前后端分离架构(.NET6/Vue3),开箱即用紧随前沿技术。<br/><a href='https://gitee.com/zuohuaijun/Admin.NET/'>https://gitee.com/zuohuaijun/Admin.NET</a>",
  22. "Version": "1.0.0",
  23. "TermsOfService": "https://dotnetchina.gitee.io/furion/",
  24. "Contact": {
  25. "Name": "zuohuaijun",
  26. "Url": "https://gitee.com/zuohuaijun/Admin.NET",
  27. "Email": "515096995@qq.com"
  28. }
  29. }
  30. ],
  31. "EnableAllGroups": true,
  32. "LoginInfo": {
  33. "Enabled": false, // 是否开启Swagger登录
  34. "CheckUrl": "/Swagger/CheckUrl",
  35. "SubmitUrl": "/Swagger/SubmitUrl",
  36. "UserName": "admin",
  37. "Password": "000000"
  38. }
  39. },
  40. "AppSettings": {
  41. "InjectSpecificationDocument": true // 生产环境是否开启Swagger
  42. },
  43. "DynamicApiControllerSettings": {
  44. "LowercaseRoute": false,
  45. "KeepName": true,
  46. "AsLowerCamelCase": true // 小驼峰路由路径
  47. },
  48. "FriendlyExceptionSettings": {
  49. "DefaultErrorMessage": "系统异常,请联系管理员",
  50. "ThrowBah": true,
  51. "LogError": false // 是否输出异常日志,默认true
  52. },
  53. "LocalizationSettings": {
  54. "SupportedCultures": [ "zh-CN", "en-US" ], // 语言列表
  55. "DefaultCulture": "zh-CN" // 默认语言
  56. },
  57. "JWTSettings": {
  58. "ValidateIssuerSigningKey": true, // 是否验证密钥,bool 类型,默认true
  59. "IssuerSigningKey": "3c1cbc3f546eda35168c3aa3cb91780fbe703f0996c6d123ea96dc85c70bbc0a", // 密钥,string 类型,必须是复杂密钥,长度大于16
  60. "ValidateIssuer": true, // 是否验证签发方,bool 类型,默认true
  61. "ValidIssuer": "Admin.NET", // 签发方,string 类型
  62. "ValidateAudience": true, // 是否验证签收方,bool 类型,默认true
  63. "ValidAudience": "Admin.NET", // 签收方,string 类型
  64. "ValidateLifetime": true, // 是否验证过期时间,bool 类型,默认true,建议true
  65. "ExpiredTime": 10080, // 过期时间,long 类型,单位分钟,默认20分钟
  66. "ClockSkew": 5 // 过期时间容错值,long 类型,单位秒,默认5秒
  67. },
  68. "RefreshToken": {
  69. "ExpiredTime": 20160 // 过期时间单位分钟(一般 refresh_token 的有效时间 > 2 * access_token 的有效时间)
  70. },
  71. "CorsAccessorSettings": {
  72. "WithExposedHeaders": [ "Content-Disposition" ], // 如果前端不代理且是axios请求
  73. "SignalRSupport": true // 启用 SignalR 跨域支持
  74. },
  75. "Cache": {
  76. "CacheType": "Memory", // Memory、Redis
  77. "RedisConnectionString": "127.0.0.1:6379;password=;db=2"
  78. },
  79. "SnowId": {
  80. "WorkerId": 5 // 取值范围0~63,默认1
  81. },
  82. "Upload": {
  83. "Path": "upload/{yyyy}/{MM}/{dd}", // 文件上传目录
  84. "MaxSize": 1048576,
  85. "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" ]
  86. },
  87. "OSSProvider": {
  88. "IsEnable": false,
  89. "Provider": 2, // 0.Invalid/1.Minio/2.Aliyun/3.QCloud/4.Qiniu/5.HuaweiCloud
  90. "Endpoint": "",
  91. "Region": "",
  92. "AccessKey": "",
  93. "SecretKey": "",
  94. "IsEnableHttps": true,
  95. "IsEnableCache": true,
  96. "Bucket": "",
  97. "ProviderName": "Aliyun"
  98. },
  99. "Email": {
  100. "Server": "smtp.163.com", // 主机
  101. "Port": 465, // 端口 465/994 25
  102. "SenderName": "系统邮件", // 发送者名称
  103. "SenderEmail": "zuohuaijun@163.com", // 发件者邮箱
  104. "ToEmail": "515096995@qq.com", // 接收人邮箱
  105. "Account": "", // 发件邮箱账号
  106. "Password": "", // 发件邮箱密码
  107. "Security": true // 启用SSL和TLS
  108. },
  109. "OAuth": {
  110. "Weixin": {
  111. "ClientId": "wxd77174ddc828b65b",
  112. "ClientSecret": "6224502b24d31acf8b4e0dc8e482317c"
  113. }
  114. }
  115. }