134 lines
3.6 KiB
JSON
134 lines
3.6 KiB
JSON
|
|
{
|
||
|
|
"Serilog": {
|
||
|
|
"Using": [
|
||
|
|
"Serilog.Sinks.Console",
|
||
|
|
"Serilog.Sinks.File"
|
||
|
|
],
|
||
|
|
"MinimumLevel": {
|
||
|
|
"Default": "Information",
|
||
|
|
"Override": {
|
||
|
|
"Microsoft": "Warning",
|
||
|
|
"Volo.Abp": "Warning",
|
||
|
|
"Hangfire": "Warning",
|
||
|
|
"DotNetCore.CAP": "Warning",
|
||
|
|
"Serilog.AspNetCore": "Information",
|
||
|
|
"Microsoft.EntityFrameworkCore": "Warning",
|
||
|
|
"Microsoft.AspNetCore": "Warning"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"WriteTo": [
|
||
|
|
{
|
||
|
|
"Name": "Console"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"Name": "File",
|
||
|
|
"Args": {
|
||
|
|
"path": "./logs/logs-.txt",
|
||
|
|
"rollingInterval": "Day"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"App": {
|
||
|
|
"SelfUrl": "http://localhost:44315",
|
||
|
|
"CorsOrigins": "http://localhost:4200,http://localhost:3100"
|
||
|
|
},
|
||
|
|
"ConnectionStrings": {
|
||
|
|
"Default": "mongodb://admin:admin02023@118.190.144.92:37117,118.190.144.92:37119,118.190.144.92:37120/JiSheCollectBus?authSource=admin&maxPoolSize=400&minPoolSize=10&waitQueueTimeoutMS=5000",
|
||
|
|
"Kafka": "192.168.1.9:29092,192.168.1.9:39092,192.168.1.9:49092",
|
||
|
|
"PrepayDB": "server=118.190.144.92;database=jishe.sysdb;uid=sa;pwd=admin@2023;Encrypt=False;Trust Server Certificate=False",
|
||
|
|
"EnergyDB": "server=118.190.144.92;database=db_energy;uid=sa;pwd=admin@2023;Encrypt=False;Trust Server Certificate=False"
|
||
|
|
},
|
||
|
|
"Redis": {
|
||
|
|
"Configuration": "192.168.1.9:6380,password=1q2w3e!@#,syncTimeout=30000,abortConnect=false,connectTimeout=30000,allowAdmin=true",
|
||
|
|
"DefaultDB": "14",
|
||
|
|
"HangfireDB": "15"
|
||
|
|
},
|
||
|
|
"Jwt": {
|
||
|
|
"Audience": "JiShe.CollectBus",
|
||
|
|
"SecurityKey": "dzehzRz9a8asdfasfdadfasdfasdfafsdadfasbasdf=",
|
||
|
|
"Issuer": "JiShe.CollectBus",
|
||
|
|
"ExpirationTime": 2
|
||
|
|
},
|
||
|
|
"HealthCheck": {
|
||
|
|
"IsEnable": true,
|
||
|
|
"MySql": {
|
||
|
|
"IsEnable": true
|
||
|
|
},
|
||
|
|
"Pings": {
|
||
|
|
"IsEnable": true,
|
||
|
|
"Host": "https://www.baidu.com/",
|
||
|
|
"TimeOut": 5000
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"SwaggerConfig": [
|
||
|
|
{
|
||
|
|
"GroupName": "Basic",
|
||
|
|
"Title": "【后台管理】基础模块",
|
||
|
|
"Version": "V1"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"GroupName": "Business",
|
||
|
|
"Title": "【后台管理】业务模块",
|
||
|
|
"Version": "V1"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"Cap": {
|
||
|
|
"RabbitMq": {
|
||
|
|
"HostName": "118.190.144.92",
|
||
|
|
"UserName": "collectbus",
|
||
|
|
"Password": "123456",
|
||
|
|
"Port": 5672
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"Kafka": {
|
||
|
|
"BootstrapServers": "192.168.1.9:29092,192.168.1.9:39092,192.168.1.9:49092",
|
||
|
|
"EnableAuthorization": false,
|
||
|
|
"SecurityProtocol": "SASL_PLAINTEXT",
|
||
|
|
"SaslMechanism": "PLAIN",
|
||
|
|
"SaslUserName": "lixiao",
|
||
|
|
"SaslPassword": "lixiao1980"
|
||
|
|
//"Topic": {
|
||
|
|
// "ReplicationFactor": 3,
|
||
|
|
// "NumPartitions": 1000
|
||
|
|
//}
|
||
|
|
},
|
||
|
|
//"Kafka": {
|
||
|
|
// "Connections": {
|
||
|
|
// "Default": {
|
||
|
|
// "BootstrapServers": "192.168.1.9:29092,192.168.1.9:39092,192.168.1.9:49092"
|
||
|
|
// // "SecurityProtocol": "SASL_PLAINTEXT",
|
||
|
|
// // "SaslMechanism": "PLAIN",
|
||
|
|
// // "SaslUserName": "lixiao",
|
||
|
|
// // "SaslPassword": "lixiao1980",
|
||
|
|
// }
|
||
|
|
// },
|
||
|
|
// "Consumer": {
|
||
|
|
// "GroupId": "JiShe.CollectBus"
|
||
|
|
// },
|
||
|
|
// "Producer": {
|
||
|
|
// "MessageTimeoutMs": 6000,
|
||
|
|
// "Acks": -1
|
||
|
|
// },
|
||
|
|
// "Topic": {
|
||
|
|
// "ReplicationFactor": 3,
|
||
|
|
// "NumPartitions": 1000
|
||
|
|
// },
|
||
|
|
// "EventBus": {
|
||
|
|
// "GroupId": "JiShe.CollectBus",
|
||
|
|
// "TopicName": "DefaultTopicName"
|
||
|
|
// }
|
||
|
|
//},
|
||
|
|
"IoTDBOptions": {
|
||
|
|
"UserName": "root",
|
||
|
|
"Password": "root",
|
||
|
|
"ClusterList": [ "192.168.1.9:6667" ],
|
||
|
|
"PoolSize": 2,
|
||
|
|
"DataBaseName": "energy",
|
||
|
|
"OpenDebugMode": true,
|
||
|
|
"UseTableSessionPoolByDefault": false
|
||
|
|
},
|
||
|
|
"ServerTagName": "JiSheCollectBus",
|
||
|
|
"KafkaReplicationFactor": 3,
|
||
|
|
"NumPartitions": 30
|
||
|
|
}
|