appsettings.Development.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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": "192.168.100.223:6379"
  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. "IdentityConfiguration": {
  64. "Password": {
  65. "RequiredLength": 8,
  66. "RequireNonAlphanumeric": true,
  67. "RequireLowercase": true,
  68. "RequireUppercase": true
  69. },
  70. "User": {
  71. "RequireUniqueEmail": false
  72. },
  73. "SignIn": {
  74. "RequireConfirmedAccount": false
  75. },
  76. "Lockout": {
  77. "MaxFailedAccessAttempts": 5,
  78. "DefaultLockoutTimeSpan": "00:10:00"
  79. },
  80. "Account": {
  81. "DefaultPassword": "Fwkj@789"
  82. },
  83. "Jwt": {
  84. "SecretKey": "e660d04ef1d3410798c953f5d7b8a4e1",
  85. "Issuer": "hotline_server",
  86. "Audience": "hotline",
  87. "Scope": "hotline_api",
  88. "Expired": 86400 //seceonds
  89. }
  90. }
  91. }