You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
4.1 KiB
JSON

{
"AllowedHosts": "*",
"Logging": {
"LogLevel": {
"Default": "Information", //加入Default否则log4net本地写入不了日志
"Admin.Core.Extensions.ApiResponseHandler": "Error"
},
"Debug": {
"LogLevel": {
"Default": "Warning"
}
},
"Console": {
"LogLevel": {
"Default": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
},
"Log4Net": {
"Name": "Admin.Core"
}
},
"AppSettings": {
"RedisCachingAOP": {
"Enabled": false,
"ConnectionString": ""
},
"MemoryCachingAOP": {
"Enabled": false
},
"LogAOP": {
"Enabled": false
},
"TranAOP": {
"Enabled": false
},
"SqlAOP": {
"Enabled": false,
"OutToLogFile": {
"Enabled": false
},
"OutToConsole": {
"Enabled": false
}
},
"FileRootPath": "/file/",
"Date": "2018-08-28",
"Author": "Admin.Core",
"UseLoadTest": true,
"CacheTimeOut": 60, //服务器本地缓存过期时间:分钟
"ApiRoot": "http://localhost:55014"
},
"Audience": {
"Secret": "dk6Vv3oTuo2OMU18w86E3j11DtM7RUX5icQtA0DCKuhYDRUqBLIiL", //不要太短16位+
"SecretFile": "E:\\my-file\\admin.core.audience.secret.txt", //安全内容就是Secret
"Issuer": "Admin.Core",
"Audience": "wr",
"Expiration": "6000000" //接口的过期时间
},
// 请配置MainDB为你想要的主库的ConnId值,并设置对应的Enabled为true
// *** 单库操作,把 MutiDBEnabled 设为false ***
// *** 多库操作,把 MutiDBEnabled 设为true其他的从库Enabled也为true **
// 具体配置看视频https://www.bilibili.com/video/BV1BJ411B7mn?p=6
"MainDB": "TOPLINE_T10_E_P2_32_AUCMA_HeNan_D_261", //当前项目的主库所对应的连接字符串的Enabled必须为true
"MutiDBEnabled": true, //是否开启多库模式
"CQRSEnabled": false, //是否开启读写分离模式必须是单库模式且数据库类型一致比如都是SqlServer
"DBS": [
/*
DBType
MySql = 0,
SqlServer = 1,
Sqlite = 2,
Oracle = 3,
PostgreSQL = 4,
Dm = 5,//达梦
Kdbndp = 6,//人大金仓
*/
{
"ConnId": "AUCMA_SCADA",
"DBType": 3,
"Enabled": true,
"HitRate": 50,
"Connection": "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.100.72.20)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLCDB)));User ID=c##aucma_scada;Password=aucma;",
"ProviderName": "System.Data.SqlClient"
},
{
"ConnId": "TOPLINE_T10_E_P2_32_AUCMA_HeNan_D_261",
"DBType": 1,
"Enabled": true,
"HitRate": 40,
"Connection": "Data Source=localhost;Initial Catalog=TOPLINE_T10_E_P2_32_AUCMA_HeNan_D_261;User ID=sa;Password=sa;",
"ProviderName": "System.Data.SqlClient"
}
//{
// "ConnId": "Hsdb",
// "DBType": 1,
// "Enabled": true,
// "HitRate": 10,
// "Connection": "Data Source=localhost;Initial Catalog=Hsdb;User ID=sa;Password=sa;",
// "ProviderName": "System.Data.SqlClient"
//}
],
"Startup": {
"Cors": {
"PolicyName": "CorsIpAccess", //策略名称
"EnableAllIPs": true, //当为true时开放所有IP均可访问。
// 支持多个域名端口,注意端口号后不要带/斜杆比如localhost:8000/,是错的
// 注意http://127.0.0.1:1818 和 http://localhost:1818 是不一样的
"IPs": "http://localhost:81,http://127.0.0.1:81"
},
"AppConfigAlert": {
"Enabled": true
},
"ApiName": "Admin.Core",
"IdentityServer4": {
"Enabled": false, // 这里默认是false表示使用jwt如果设置为true则表示系统使用Ids4模式
"AuthorizationUrl": "http://localhost:5004", // 认证中心域名
"ApiName": "admin.core.api" // 资源服务器
},
"RedisMq": {
"Enabled": false //redis 消息队列
},
"MiniProfiler": {
"Enabled": false //性能分析开启
},
"Nacos": {
"Enabled": false //Nacos注册中心
}
},
"Middleware": {
"AucamTask": {
"Enabled": true
}
}
}