123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- {
- "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"
- // ]
- // }
- //}
- ],
- "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": "PORT=5432;DATABASE=hotline;HOST=192.168.100.121;PASSWORD=fengwo11!!;USER ID=dev;",
- "Redis": "192.168.100.223",
- "MongoDB": "mongodb://192.168.100.121:27017"
- },
- "Swagger": true,
- "Cors": {
- "Origins": [ "http://localhost:8888", "http://admin.hotline.fw.com", "http://hotline.fw.com" ]
- },
- "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
- },
- "MqConfiguration": {
- "DbConnectionString": "PORT=5432;DATABASE=fwcap;HOST=192.168.100.121;PASSWORD=fengwo11!!;USER ID=dev;",
- "UseDashBoard": true,
- "RabbitMq": {
- "UserName": "dev",
- "Password": "123456",
- "HostName": "192.168.100.217",
- "VirtualHost": "fwt-master"
- }
- }
- }
|