appsettings.Development.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "Serilog": {
  3. "Using": [
  4. "Serilog.Enrichers.Span",
  5. "Serilog.Sinks.Console",
  6. "Serilog.Sinks.Grafana.Loki"
  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": "GrafanaLoki",
  31. // "Args": {
  32. // "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}",
  33. // "uri": "http://192.168.100.217:3100",
  34. // "labels": [
  35. // {
  36. // "key": "app",
  37. // "value": "hotline"
  38. // }
  39. // ],
  40. // "propertiesAsLabels": [
  41. // "fwhl"
  42. // ]
  43. // }
  44. //}
  45. ],
  46. "Enrich": [ "FromLogContext", "WithSpan" ]
  47. },
  48. "AllowedHosts": "*",
  49. "DeviceConfigs": {
  50. "Address": "http://192.168.100.100/xml",
  51. "Authorize": true,
  52. "ReceiveKey": "E1BBD1BB-A269-44",
  53. "SendKey": "2A-BA92-160A3B1D",
  54. "Expired": 86300 //认证过期时间(秒)
  55. },
  56. "ConnectionStrings": {
  57. "Hotline": "PORT=5432;DATABASE=hotline;HOST=192.168.100.121;PASSWORD=fengwo11!!;USER ID=dev;",
  58. "Redis": "192.168.100.223",
  59. "MongoDB": "mongodb://192.168.100.121:27017"
  60. },
  61. "Swagger": true,
  62. "Cors": {
  63. "Origins": [ "http://localhost:8888", "http://admin.hotline.fw.com", "http://hotline.fw.com" ]
  64. },
  65. "IdentityConfiguration": {
  66. "Password": {
  67. "RequiredLength": 8,
  68. "RequireNonAlphanumeric": true,
  69. "RequireLowercase": true,
  70. "RequireUppercase": true
  71. },
  72. "User": {
  73. "RequireUniqueEmail": false
  74. },
  75. "SignIn": {
  76. "RequireConfirmedAccount": false
  77. },
  78. "Lockout": {
  79. "MaxFailedAccessAttempts": 5,
  80. "DefaultLockoutTimeSpan": "00:10:00"
  81. },
  82. "Account": {
  83. "DefaultPassword": "Fwkj@789"
  84. },
  85. "Jwt": {
  86. "SecretKey": "e660d04ef1d3410798c953f5d7b8a4e1",
  87. "Issuer": "hotline_server",
  88. "Audience": "hotline",
  89. "Scope": "hotline_api",
  90. "Expired": 86400 //seceonds
  91. }
  92. },
  93. "DatabaseConfiguration": {
  94. "ApplyDbMigrations": false,
  95. "ApplySeed": false
  96. },
  97. "MqConfiguration": {
  98. "DbConnectionString": "PORT=5432;DATABASE=fwcap;HOST=192.168.100.121;PASSWORD=fengwo11!!;USER ID=dev;",
  99. "UseDashBoard": true,
  100. "RabbitMq": {
  101. "UserName": "dev",
  102. "Password": "123456",
  103. "HostName": "192.168.100.217",
  104. "VirtualHost": "fwt-master"
  105. }
  106. }
  107. }