123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- {
- "Serilog": {
- "Using": [
- "Serilog.Enrichers.Span",
- "Serilog.Sinks.Console",
- "Serilog.Sinks.Grafana.Loki"
- ],
- "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": "GrafanaLoki",
- "Args": {
- "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}",
- "uri": "http://192.168.100.217:3100",
- "labels": [
- {
- "key": "app",
- "value": "hotline"
- }
- ],
- "propertiesAsLabels": [
- "fwhl"
- ]
- }
- }
- //{
- // "Name": "Exeptionless",
- // "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": "File",
- // "Args": {
- // "path": "logs/log-.txt",
- // "rollingInterval": "Day"
- // }
- //},
- //{
- // "Name": "MongoDBBson",
- // "Args": {
- // "databaseUrl": "mongodb://192.168.100.121:27017/hotline_logs",
- // "collectionName": "logs",
- // "cappedMaxSizeMb": "1024",
- // "cappedMaxDocuments": "50000",
- // "rollingInterval": "Day",
- // "outputTemplate": "[{Timestamp:HH:mm:ss} {Level}] {SourceContext} [{TraceId}]{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}"
- // }
- //}
- ],
- "Enrich": [ "FromLogContext", "WithSpan" ]
- },
- "AllowedHosts": "*",
- "DeviceConfigs": {
- "Address": "http://192.168.100.100/xml",
- "Authorize": true,
- "ReceiveKey": "E1BBD1BB-A269-44",
- "SendKey": "2A-BA92-160A3B1D",
- "Expired": 1440 //认证过期时间(秒)
- },
- "ConnectionStrings": {
- "Hotline": " PORT=5432;DATABASE=hotline;HOST=192.168.100.121;PASSWORD=fengwo11!!;USER ID=dev;",
- "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" ]
- },
- "Exceptionless": {
- "InUse": false,
- "ServerUrl": "http://log.fw.com",
- "ApiKey": "zrSsxjdFC1Uv2WBckZn3RYxjpKKdxfYAN50aFiuV"
- },
- "IdentityConfigs": {
- "IdentityUrl": "http://identity.fengwo.com",
- "IdentityApiUrl": "http://open.identity.fengwo.com",
- "ClientId": "hotline_server",
- "ClientSecret": "ce2fae0e-f0f6-46d6-bd79-1f1a31dff494",
- "ClientScope": "identity_admin_api"
- },
- "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
- }
- }
|