appconfig.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. //应用程序类型Controllers ControllersWithViews MVC
  3. "appType": "Controllers",
  4. //Api地址
  5. "urls": [ "http://*:7000" ],
  6. //跨域地址
  7. "corUrls": [],
  8. //程序集名称
  9. "assemblyNames": [ "ZhonTai.Admin" ],
  10. //租户
  11. "tenant": true,
  12. //分布式事务唯一标识admin,为空则不生成分布式事务表
  13. "distributeKey": "",
  14. //验证
  15. "validate": {
  16. //登录
  17. "login": true,
  18. //接口权限
  19. "permission": true,
  20. //数据权限
  21. "dataPermission": true
  22. },
  23. //Swagger文档
  24. "swagger": {
  25. //启用
  26. "enable": true,
  27. //启用枚举架构过滤器
  28. "enableEnumSchemaFilter": true,
  29. //启用接口排序文档过滤器
  30. "enableOrderTagsDocumentFilter": true,
  31. //启用枚举属性名
  32. "enableJsonStringEnumConverter": false,
  33. //启用SchemaId命名空间
  34. "enableSchemaIdNamespace": false,
  35. //程序集列表,用于启用SchemaId命名空间
  36. "assemblyNameList": [],
  37. //路由前缀,如配置微服务文档地址:doc/module/swagger
  38. "routePrefix": "admin/swagger",
  39. //地址
  40. "url": "http://localhost:7000",
  41. "projects": [
  42. {
  43. "name": "中台Admin",
  44. "code": "admin",
  45. "version": "v3.6.5",
  46. "description": ""
  47. }
  48. ]
  49. },
  50. //ZhonTai接口文档
  51. "apiUI": {
  52. //启用
  53. "enable": true,
  54. //路由前缀,如配置微服务文档地址:doc/module
  55. "routePrefix": "admin",
  56. //页脚
  57. "footer": {
  58. "enable": false,
  59. "content": "Copyright<a-icon type=\"copyright\" /> 2022-<a target=\"_blank\" href=\"https://www.zhontai.net\">中台Admin</a>"
  60. }
  61. },
  62. //MiniProfiler性能分析器
  63. "miniProfiler": false,
  64. //统一认证授权服务器
  65. "identityServer": {
  66. //启用
  67. "enable": false,
  68. //认证地址
  69. "url": "https://localhost:5000",
  70. //启用Https
  71. "requireHttpsMetadata": true,
  72. //受众
  73. "audience": "admin.server.api"
  74. },
  75. //面向切面编程
  76. "aop": {
  77. //事务
  78. "transaction": true
  79. },
  80. //数据库日志
  81. "log": {
  82. //操作日志
  83. "operation": true
  84. },
  85. //限流
  86. "rateLimit": false,
  87. //验证码
  88. "varifyCode": {
  89. //启用
  90. "enable": true,
  91. //字体列表
  92. "fonts": [ "Times New Roman", "Verdana", "Arial", "Gungsuh", "Impact" ]
  93. },
  94. //默认密码
  95. "defaultPassword": "111111",
  96. //动态api
  97. "dynamicApi": {
  98. //结果格式化
  99. "formatResult": true
  100. },
  101. //实现标准标识密码哈希,启用后相同密码加密后各不相同
  102. "passwordHasher": false,
  103. //最大请求大小
  104. "maxRequestBodySize": 104857600,
  105. //健康检查
  106. "healthChecks": {
  107. //启用
  108. "enable": true,
  109. //访问路径
  110. "path": "/admin/health"
  111. }
  112. }