平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

appsettings.json 2.1 KiB

4 months ago
4 months ago
4 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "AppSettings": {
  3. "InjectSpecificationDocument": true, //是否开启swagger
  4. "Urls": "http://0.0.0.0:5566" //监听地址
  5. },
  6. "AllowedHosts": "*",
  7. //友好异常处理
  8. "FriendlyExceptionSettings": {
  9. "DefaultErrorMessage": "系统异常,请联系管理员",
  10. "HideErrorCode": true
  11. },
  12. //动态API设备
  13. "DynamicApiControllerSettings": {
  14. "DefaultRoutePrefix": "api", //默认路由前缀,string,默认 api
  15. "DefaultHttpMethod": "POST", //默认请求谓词,string,默认:POST
  16. "LowercaseRoute": false, //是否采用小写路由,bool 类型,默认 true
  17. "KeepName": true, //是否保持原有名称不处理,bool,默认 false
  18. "CamelCaseSeparator": "", //骆驼(驼峰)命名分隔符,string,默认:-
  19. "AsLowerCamelCase": true, //启用小驼峰命名(首字母小写),默认 false
  20. "ModelToQuery": true, // 请求将类类型参数转查询参数,bool,默认" false
  21. "UrlParameterization": true //路由参数采用 [FromQuery] 化,默认 false([FromRoute] 方式)
  22. },
  23. //swagger设置
  24. "SpecificationDocumentSettings": {
  25. "DocumentTitle": "平安校园通用后台管理系统",
  26. "DocExpansionState": "None",
  27. "GroupOpenApiInfos": []
  28. },
  29. "CorsAccessorSettings": {
  30. "WithExposedHeaders": [
  31. "access-token",
  32. "x-access-token",
  33. "environment"
  34. ],
  35. "SignalRSupport": true
  36. },
  37. //排除特定配置文件
  38. "IgnoreConfigurationFiles": [
  39. "seed_*.json"
  40. ],
  41. "AppInfo": {
  42. "SXAPIURL": "https://api.deepeleph.com",
  43. "AppKey": "Pep50sPYdY",
  44. "AppSecret": "36000f41-f13c-458b-a29b-59938359e58e",
  45. "PoiId": "DEMO00001",
  46. "TenantCode": "quanjiang",
  47. "AlarmImg": "alarmImg",
  48. "PersonImg": "personImg",
  49. "AttendanceImg": "attendanceImg",
  50. "RoomCallImg": "roomCallImg",
  51. "Python": "D:\\Program Files\\py39\\python.exe"
  52. },
  53. //腾讯云短信配置
  54. "TXSms": {
  55. "SecretId": "AKIDe7LJ2UfZDafT0OWNxHK7dutb2D7k6B0X",
  56. "SecretKey": "II2WjgOpzsUqvjGXXGiupUgdNr40g5D4",
  57. "SmsAppId": "1400681981",
  58. "SmsSn": "北京泉江科技",
  59. "VerificationCodeId": "1408635"
  60. }
  61. }