appsettings.Development.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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": "File",
  34. // "Args": {
  35. // "path": "logs/log-.txt",
  36. // "rollingInterval": "Day"
  37. // }
  38. //},
  39. ],
  40. "Enrich": [ "FromLogContext", "WithSpan" ]
  41. },
  42. "AllowedHosts": "*",
  43. "DeviceConfigs": {
  44. "Address": "http://192.168.100.100/xml",
  45. "Authorize": true,
  46. "ReceiveKey": "E1BBD1BB-A269-44",
  47. "SendKey": "2A-BA92-160A3B1D",
  48. "Expired": 86300 //认证过期时间(秒)
  49. },
  50. "ConnectionStrings": {
  51. "Hotline": "server=db.fengwo.com;Database=hotline;Uid=dev;Pwd=fengwo11!!;SslMode=none;",
  52. "Redis": "192.168.100.223:6379",
  53. "MongoDB": "mongodb://192.168.100.121:27017"
  54. },
  55. "Swagger": true,
  56. "Cors": {
  57. "Origins": [ "http://localhost:8888", "http://admin.hotline.fw.com", "http://hotline.fw.com" ]
  58. },
  59. "WorkTimeSettings": {
  60. "MorningBegin": "08:00",
  61. "MorningEnd": "12:00",
  62. "AfterBegin": "15:00",
  63. "AfterEnd": "21:00",
  64. "WorkDay": [ 1, 2, 3, 4, 5, 0, 6 ],
  65. "WorkCategory": "08da9b9f-a35d-4ade-8ea7-55e8abbcdefd",
  66. "RestCategory": "08daa5f5-ac7a-4ced-8295-1c78baa15f9e"
  67. },
  68. "IdentityConfiguration": {
  69. "Password": {
  70. "RequiredLength": 8,
  71. "RequireNonAlphanumeric": true,
  72. "RequireLowercase": true,
  73. "RequireUppercase": true
  74. },
  75. "User": {
  76. "RequireUniqueEmail": false
  77. },
  78. "SignIn": {
  79. "RequireConfirmedAccount": false
  80. },
  81. "Lockout": {
  82. "MaxFailedAccessAttempts": 5,
  83. "DefaultLockoutTimeSpan": "00:10:00"
  84. },
  85. "Account": {
  86. "DefaultPassword": "Fwkj@789"
  87. },
  88. "Jwt": {
  89. "SecretKey": "e660d04ef1d3410798c953f5d7b8a4e1",
  90. "Issuer": "hotline_server",
  91. "Audience": "hotline",
  92. "Scope": "hotline_api",
  93. "Expired": 86400 //seceonds
  94. }
  95. },
  96. "DatabaseConfiguration": {
  97. "ApplyDbMigrations": false,
  98. "ApplySeed": false
  99. }
  100. }