-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3646f7c
commit 673830d
Showing
2 changed files
with
38 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" //接口根地址 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters