App.json 977 B

12345678910111213141516171819202122232425262728
  1. {
  2. "$schema": "https://gitee.com/dotnetchina/Furion/raw/net6/schemas/v3/furion-schema.json",
  3. "Urls": "https://*:5005",
  4. "AllowedHosts": "*",
  5. "AppSettings": {
  6. "InjectSpecificationDocument": true // 生产环境是否开启Swagger
  7. },
  8. "DynamicApiControllerSettings": {
  9. "LowercaseRoute": false,
  10. "KeepName": true,
  11. "AsLowerCamelCase": true // 小驼峰路由路径
  12. },
  13. "FriendlyExceptionSettings": {
  14. "DefaultErrorMessage": "系统异常,请联系管理员",
  15. "ThrowBah": true,
  16. "LogError": false // 是否输出异常日志,默认true
  17. },
  18. "LocalizationSettings": {
  19. "SupportedCultures": [ "zh-CN", "en-US" ], // 语言列表
  20. "DefaultCulture": "zh-CN" // 默认语言
  21. },
  22. "CorsAccessorSettings": {
  23. "WithExposedHeaders": [ "Content-Disposition" ], // 如果前端不代理且是axios请求
  24. "SignalRSupport": true // 启用 SignalR 跨域支持
  25. }
  26. }