appsettings.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. "MorningBegin": "07:00",
  56. "MorningEnd": "12:00",
  57. "AfterBegin": "12:00",
  58. "AfterEnd": "23: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. "RecordSettings": {
  64. "Remote": "http://192.168.100.100/mcc/Recorder/",
  65. "Local": "http://192.168.100.36:50001/Recorder/"
  66. },
  67. "IdentityConfiguration": {
  68. "Password": {
  69. "RequiredLength": 8,
  70. "RequireNonAlphanumeric": true,
  71. "RequireLowercase": true,
  72. "RequireUppercase": true
  73. },
  74. "User": {
  75. "RequireUniqueEmail": false
  76. },
  77. "SignIn": {
  78. "RequireConfirmedAccount": false
  79. },
  80. "Lockout": {
  81. "MaxFailedAccessAttempts": 5,
  82. "DefaultLockoutTimeSpan": "00:10:00"
  83. },
  84. "Account": {
  85. "DefaultPassword": "Fwkj@789"
  86. },
  87. "Jwt": {
  88. "SecretKey": "e660d04ef1d3410798c953f5d7b8a4e1",
  89. "Issuer": "hotline_server",
  90. "Audience": "hotline",
  91. "Scope": "hotline_api",
  92. "Expired": 86400 //seceonds
  93. }
  94. }
  95. }