Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
Coldairarrow committed Apr 19, 2020
1 parent 3646f7c commit 673830d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 8 deletions.
43 changes: 37 additions & 6 deletions src/Coldairarrow.Console/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,50 @@
{
"Logging": {
"LogLevel": {
"Default": "Warning"
}
"log": { //日志配置
"minlevel": "Verbose", //定义详见Serilog.Events.LogEventLevel
"console": {
"enabled": true
},
"debug": {
"enabled": true
},
"file": {
"enabled": true
},
"database": {
"enabled": true
},
"elasticsearch": {
"enabled": false,
"nodes": [ "http://localhost:9200/" ],
"indexformat": "logstash-{0:yyyy.MM.dd}"
},
"overrides": [ //重写日志输出级别
{
"source": "Microsoft.AspNetCore",
"minlevel": "Warning"
}
]
},
"Cache": {
"CacheType": "Memory", //定义详见Coldairarrow.Util.CacheType
"RedisEndpoint": "127.0.0.1:6379" //Redis节点地址,定义详见 https://github.com/2881099/csredis
},
"LogicDelete": false, //是否开启逻辑删除,默认为物理删除
"AllowedHosts": "*",
"DatabaseType": "SqlServer", //默认数据库类型,定义详见EFCore.Sharding.DatabaseType
"ConnectionName": "BaseDb", //默认连接字符串名
"ConnectionStrings": {
//SQLServer
"BaseDb": "Data Source=.;Initial Catalog=Colder.Admin.AntdVue;Integrated Security=True"
"BaseDb": "Data Source=.;Initial Catalog=Colder.Admin.AntdVue;Integrated Security=True;Pooling=true;"
//PostgreSQL
//"BaseDb": "SERVER=localhost;PORT=5432;DATABASE=Colder.Admin.AntdVue;USER ID=postgres;PASSWORD=postgres"
//MySQl
//"BaseDb": "server=127.0.0.1;user id=root;password=root;persistsecurityinfo=True;database=Colder.Admin.AntdVue;SslMode=none"
//Oracle
//"BaseDb": "Data Source=127.0.0.1/ORCL;User ID=COLDER.ADMIN.ANTDVUE;Password=123456;Connect Timeout=3"
},
"WorkerId": 1 //»úÆ÷Id
//雪花Id,,以进程为单位,不同进程数据中心Id和机器Id不能同时重复
"WorkerId": 1, //机器Id
"JWTSecret": "CpUTEdG30LPAQXxQ",
"WebRootUrl": "http://localhost:5000" //接口根地址
}
3 changes: 1 addition & 2 deletions src/Coldairarrow.Util/01.Coldairarrow.Util.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@
<PackageReference Include="AutoMapper" Version="9.0.0" />
<PackageReference Include="Caching.CSRedis" Version="3.6.2" />
<PackageReference Include="CSRedisCore" Version="3.6.2" />
<PackageReference Include="EFCore.Sharding" Version="3.1.3.35" />
<PackageReference Include="EFCore.Sharding" Version="3.1.3.36" />
<PackageReference Include="EFCore.Sharding.SqlServer" Version="3.1.3" />
<PackageReference Include="IdHelper.Zookeeper" Version="1.5.1" />
<PackageReference Include="LinqKit.Microsoft.EntityFrameworkCore" Version="3.0.0" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="3.1.3" />
Expand Down

0 comments on commit 673830d

Please sign in to comment.