appsettings.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "Serilog": {
  3. "Using": [
  4. "Serilog.Enrichers.Span",
  5. "Serilog.Sinks.Console",
  6. "Serilog.Sinks.Exceptionless"
  7. ],
  8. "MinimumLevel": {
  9. "Default": "Information",
  10. "Override": {
  11. "Microsoft": "Warning",
  12. "Microsoft.Hosting.Lifetime": "Information",
  13. "Microsoft.AspNetCore.Authentication": "Debug",
  14. "Microsoft.AspNetCore": "Warning",
  15. "Microsoft.AspNetCore.SignalR": "Debug",
  16. "Microsoft.AspNetCore.Http.Connections": "Debug",
  17. "System": "Warning"
  18. }
  19. },
  20. "WriteTo": [
  21. {
  22. "Name": "Console",
  23. "Args": {
  24. //"outputTemplate": "time=\"{Timestamp:yyyy-MM-dd HH:mm:ss}\" level={Level:w3} category={SourceContext} trace={TraceId}{NewLine}msg=\"{Message:lj}\"{NewLine}error=\"{Exception}\"{NewLine}",
  25. "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}",
  26. "theme": "Serilog.Sinks.SystemConsole.Themes.ConsoleTheme::None, Serilog.Sinks.Console"
  27. }
  28. },
  29. {
  30. "Name": "Exceptionless"
  31. }
  32. //{
  33. // "Name": "Exeptionless",
  34. // "Args": {
  35. // //"outputTemplate": "time=\"{Timestamp:yyyy-MM-dd HH:mm:ss}\" level={Level:w3} category={SourceContext} trace={TraceId}{NewLine}msg=\"{Message:lj}\"{NewLine}error=\"{Exception}\"{NewLine}",
  36. // "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}",
  37. // "theme": "Serilog.Sinks.SystemConsole.Themes.ConsoleTheme::None, Serilog.Sinks.Console"
  38. // }
  39. //}
  40. //{
  41. // "Name": "File",
  42. // "Args": {
  43. // "path": "logs/log-.txt",
  44. // "rollingInterval": "Day"
  45. // }
  46. //}
  47. ],
  48. "Enrich": [ "FromLogContext", "WithSpan" ]
  49. },
  50. "AllowedHosts": "*",
  51. "DeviceConfigs": {
  52. "Address": "http://192.168.100.100/xml",
  53. "Authorize": true,
  54. "ReceiveKey": "E1BBD1BB-A269-44",
  55. "SendKey": "2A-BA92-160A3B1D",
  56. "Expired": 86400 //认证过期时间(秒)
  57. },
  58. "ConnectionStrings": {
  59. "Hotline": "server=db.fengwo.com;Database=hotline;Uid=dev;Pwd=fengwo11!!;SslMode=none;",
  60. "Redis": "192.168.100.223:6379"
  61. },
  62. "Swagger": true,
  63. "Cors": {
  64. "Origins": [ "http://localhost:8888", "http://admin.hotline.fw.com", "http://hotline.fw.com" ]
  65. },
  66. "WorkTimeSettings": {
  67. "MorningBegin": "08:00",
  68. "MorningEnd": "12:00",
  69. "AfterBegin": "15:00",
  70. "AfterEnd": "21:00",
  71. "WorkDay": [ 1, 2, 3, 4, 5, 0, 6 ],
  72. "WorkCategory": "08da9b9f-a35d-4ade-8ea7-55e8abbcdefd",
  73. "RestCategory": "08daa5f5-ac7a-4ced-8295-1c78baa15f9e"
  74. },
  75. "Exceptionless": {
  76. "InUse": true,
  77. "ServerUrl": "http://log.fw.com",
  78. "ApiKey": "zrSsxjdFC1Uv2WBckZn3RYxjpKKdxfYAN50aFiuV"
  79. },
  80. "IdentityConfigs": {
  81. "IdentityUrl": "http://identity.fengwo.com",
  82. "IdentityApiUrl": "http://open.identity.fengwo.com",
  83. "ClientId": "hotline_server",
  84. "ClientSecret": "ce2fae0e-f0f6-46d6-bd79-1f1a31dff494",
  85. "ClientScope": "identity_admin_api"
  86. }
  87. }