appsettings.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.100/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": "redis.fengwo.com"
  49. },
  50. "Swagger": true,
  51. "Cors": {
  52. "Origins": [ "http://localhost:8888", "http://callcenter-admin.fengwo.com", "http://admin.call.fengwo.com" ]
  53. },
  54. "WorkTimeSettings": {
  55. "MorningBegin": "08:00",
  56. "MorningEnd": "12:00",
  57. "AfterBegin": "15:00",
  58. "AfterEnd": "21:00",
  59. "WorkDay": [ 1, 2, 3, 4, 5, 0, 6 ],
  60. "WorkCategory": "08da9b9f-a35d-4ade-8ea7-55e8abbcdefd",
  61. "RestCategory": "08daa5f5-ac7a-4ced-8295-1c78baa15f9e"
  62. }
  63. }