appsettings.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. {
  2. "Serilog": {
  3. "Using": [
  4. "Serilog.Enrichers.Span",
  5. "Serilog.Sinks.Console"
  6. ],
  7. "MinimumLevel": {
  8. "Default": "Information",
  9. "Override": {
  10. "Microsoft": "Warning",
  11. "Microsoft.Hosting.Lifetime": "Information",
  12. "Microsoft.AspNetCore.Authentication": "Debug",
  13. "Microsoft.AspNetCore": "Warning",
  14. "Microsoft.AspNetCore.SignalR": "Debug",
  15. "Microsoft.AspNetCore.Http.Connections": "Debug",
  16. "System": "Warning"
  17. }
  18. },
  19. "WriteTo": [
  20. {
  21. "Name": "Console",
  22. "Args": {
  23. //"outputTemplate": "time=\"{Timestamp:yyyy-MM-dd HH:mm:ss}\" level={Level:w3} category={SourceContext} trace={TraceId}{NewLine}msg=\"{Message:lj}\"{NewLine}error=\"{Exception}\"{NewLine}",
  24. "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}",
  25. "theme": "Serilog.Sinks.SystemConsole.Themes.ConsoleTheme::None, Serilog.Sinks.Console"
  26. }
  27. }
  28. //{
  29. // "Name": "File",
  30. // "Args": {
  31. // "path": "logs/log-.txt",
  32. // "rollingInterval": "Day"
  33. // }
  34. //}
  35. ],
  36. "Enrich": [ "FromLogContext", "WithSpan" ]
  37. },
  38. "AllowedHosts": "*",
  39. "DeviceConfigs": {
  40. "Address": "http://192.168.100.101/xml",
  41. "Authorize": true,
  42. "ReceiveKey": "E1BBD1BB-A269-44",
  43. "SendKey": "2A-BA92-160A3B1D",
  44. "Expired": 86400 //认证过期时间(秒)
  45. },
  46. "ConnectionStrings": {
  47. "CallCenter": "server=db.fengwo.com;Database=callcenter;Uid=dev;Pwd=fengwo11!!;SslMode=none;",
  48. "Redis": "192.168.100.223:6379"
  49. },
  50. "Swagger": true,
  51. "Cors": {
  52. "Origins": [ "http://localhost:8888","http://localhost:8695","http://callcenter-admin.fengwo.com", "http://admin.call.fengwo.com" ]
  53. },
  54. "WorkTimeSettings": {
  55. "LineSetting": [
  56. {
  57. "NumNo": "12345",
  58. "MorningBegin": "00:00",
  59. "MorningEnd": "12:00",
  60. "AfterBegin": "12:00",
  61. "AfterEnd": "23:59",
  62. "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
  63. "WorkCategory": "",
  64. "RestCategory": "",
  65. "WorkToGroup": "600",
  66. "RestToGroup": "600"
  67. },
  68. {
  69. "NumNo": "12333",
  70. "MorningBegin": "07:00",
  71. "MorningEnd": "12:00",
  72. "AfterBegin": "12:00",
  73. "AfterEnd": "23:00",
  74. "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
  75. "WorkCategory": "",
  76. "RestCategory": "",
  77. "WorkToGroup": "604",
  78. "RestToGroup": "600"
  79. },
  80. {
  81. "NumNo": "12319",
  82. "MorningBegin": "00:00",
  83. "MorningEnd": "12:00",
  84. "AfterBegin": "12:00",
  85. "AfterEnd": "23:59",
  86. "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
  87. "WorkCategory": "",
  88. "RestCategory": "",
  89. "WorkToGroup": "600",
  90. "RestToGroup": "600"
  91. },
  92. {
  93. "NumNo": "12315",
  94. "MorningBegin": "00:00",
  95. "MorningEnd": "12:00",
  96. "AfterBegin": "12:00",
  97. "AfterEnd": "23:59",
  98. "WorkDay": [ 1, 2, 3, 4, 5, 6, 0 ],
  99. "WorkCategory": "",
  100. "RestCategory": "",
  101. "WorkToGroup": "",
  102. "RestToGroup": ""
  103. }
  104. ]
  105. },
  106. "RecordSettings": {
  107. "Remote": "http://192.168.100.100/mcc/Recorder/",
  108. "Local": "http://192.168.100.36:50001/Recorder/"
  109. },
  110. "IdentityConfiguration": {
  111. "Password": {
  112. "RequiredLength": 8,
  113. "RequireNonAlphanumeric": true,
  114. "RequireLowercase": true,
  115. "RequireUppercase": true
  116. },
  117. "User": {
  118. "RequireUniqueEmail": false
  119. },
  120. "SignIn": {
  121. "RequireConfirmedAccount": false
  122. },
  123. "Lockout": {
  124. "MaxFailedAccessAttempts": 5,
  125. "DefaultLockoutTimeSpan": "00:10:00"
  126. },
  127. "Account": {
  128. "DefaultPassword": "Fwkj@789"
  129. },
  130. "Jwt": {
  131. "SecretKey": "e660d04ef1d3410798c953f5d7b8a4e1",
  132. "Issuer": "hotline_server",
  133. "Audience": "hotline",
  134. "Scope": "hotline_api",
  135. "Expired": 86400 //seceonds
  136. }
  137. }
  138. }