123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- {
- "Serilog": {
- "Using": [
- "Serilog.Enrichers.Span",
- "Serilog.Sinks.Console",
- "Serilog.Sinks.Exceptionless"
- ],
- "MinimumLevel": {
- "Default": "Information",
- "Override": {
- "Microsoft": "Warning",
- "Microsoft.Hosting.Lifetime": "Information",
- "Microsoft.AspNetCore.Authentication": "Debug",
- "Microsoft.AspNetCore": "Warning",
- "Microsoft.AspNetCore.SignalR": "Debug",
- "Microsoft.AspNetCore.Http.Connections": "Debug",
- "System": "Warning"
- }
- },
- "WriteTo": [
- {
- "Name": "Console",
- "Args": {
- //"outputTemplate": "time=\"{Timestamp:yyyy-MM-dd HH:mm:ss}\" level={Level:w3} category={SourceContext} trace={TraceId}{NewLine}msg=\"{Message:lj}\"{NewLine}error=\"{Exception}\"{NewLine}",
- "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}",
- "theme": "Serilog.Sinks.SystemConsole.Themes.ConsoleTheme::None, Serilog.Sinks.Console"
- }
- },
- {
- "Name": "Exceptionless"
- }
- //{
- // "Name": "File",
- // "Args": {
- // "path": "logs/log-.txt",
- // "rollingInterval": "Day"
- // }
- //},
- ],
- "Enrich": [ "FromLogContext", "WithSpan" ]
- },
- "AllowedHosts": "*",
- "DeviceConfigs": {
- "Address": "http://192.168.100.100/xml",
- "Authorize": true,
- "ReceiveKey": "E1BBD1BB-A269-44",
- "SendKey": "2A-BA92-160A3B1D",
- "Expired": 86300 //认证过期时间(秒)
- },
- "ConnectionStrings": {
- "Hotline": "server=db.fengwo.com;Database=hotline;Uid=dev;Pwd=fengwo11!!;SslMode=none;",
- "Redis": "192.168.100.223:6379",
- "MongoDB": "mongodb://192.168.100.121:27017"
- },
- "Swagger": true,
- "Cors": {
- "Origins": [ "http://localhost:8888", "http://admin.hotline.fw.com", "http://hotline.fw.com" ]
- },
- "WorkTimeSettings": {
- "MorningBegin": "08:00",
- "MorningEnd": "12:00",
- "AfterBegin": "15:00",
- "AfterEnd": "21:00",
- "WorkDay": [ 1, 2, 3, 4, 5, 0, 6 ],
- "WorkCategory": "08da9b9f-a35d-4ade-8ea7-55e8abbcdefd",
- "RestCategory": "08daa5f5-ac7a-4ced-8295-1c78baa15f9e"
- },
- "IdentityConfiguration": {
- "Password": {
- "RequiredLength": 8,
- "RequireNonAlphanumeric": true,
- "RequireLowercase": true,
- "RequireUppercase": true
- },
- "User": {
- "RequireUniqueEmail": false
- },
- "SignIn": {
- "RequireConfirmedAccount": false
- },
- "Lockout": {
- "MaxFailedAccessAttempts": 5,
- "DefaultLockoutTimeSpan": "00:10:00"
- },
- "Account": {
- "DefaultPassword": "Fwkj@789"
- },
- "Jwt": {
- "SecretKey": "e660d04ef1d3410798c953f5d7b8a4e1",
- "Issuer": "hotline_server",
- "Audience": "hotline",
- "Scope": "hotline_api",
- "Expired": 86400 //seceonds
- }
- },
- "DatabaseConfiguration": {
- "ApplyDbMigrations": false,
- "ApplySeed": false
- }
- }
|