97 lines
2.7 KiB
JSON
97 lines
2.7 KiB
JSON
{
|
|
"Environment": "Dev",
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"ConnectionStrings": {
|
|
"DefaultConnection": "server=192.168.80.81;Database=sjzy_package_channel;Uid=root;Pwd=10c1fb814e7c1552;"
|
|
},
|
|
"Redis": {
|
|
"ConnectionString": "192.168.80.57:6379,abortConnect=false",
|
|
"PassWord": "",
|
|
"DefaultDatabaseIndex": 6,
|
|
"Prefix": ""
|
|
},
|
|
"Consul": {
|
|
"ServiceName": "PackageChannel",
|
|
"ServiceIP": "192.168.80.55",
|
|
"ServicePort": 5034,
|
|
"ServiceHealthCheck": "http://192.168.80.55:5034/HealthCheck",
|
|
"ConsulAddress": "http://192.168.80.56:8500"
|
|
},
|
|
"CorsPolicy": [
|
|
"http://172.16.216.101:18006"
|
|
],
|
|
"Swagger": {
|
|
"IsEnable": true,
|
|
"ServiceUrl": "",
|
|
"JsonUrlPrefix": "", //转发目录前缀,部署服务器时需要配置 /kingmall
|
|
"ScanPrefix": [ "SJZY" ] //全局扫描程序集或xml文件时只加载以 SJZY 开头的内容
|
|
},
|
|
"OSS": {
|
|
"AccessKeyId": "LTAI5tJWyx1kgQfk221QFknu",
|
|
"AccessKeySecret": "0AvP3vyBdwT1pwvLXeqeJ448US8QL8",
|
|
"Endpoint": "http://oss-cn-shenzhen.aliyuncs.com/",
|
|
"BucketName": "cams3"
|
|
},
|
|
"RabbitMQ": {
|
|
"UserName": "sjzy",
|
|
"Password": "sjzyadmin",
|
|
"HostName": "192.168.80.56",
|
|
"Port": 5672
|
|
},
|
|
"Custome": {
|
|
"Setting1": 12,
|
|
"Setting2": 22
|
|
},
|
|
"Serilog": {
|
|
"MinimumLevel": {
|
|
"Default": "Debug",
|
|
"Override": {
|
|
"System": "Warning",
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information",
|
|
"Microsoft.EntityFrameworkCore": "Information"
|
|
}
|
|
},
|
|
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ],
|
|
"WriteTo": [
|
|
{
|
|
"Name": "Console",
|
|
"Args": {
|
|
//"theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, SystemConsoleTheme.Literate",
|
|
"outputTemplate": "{NewLine}[{Timestamp:yyyy-MM-dd HH:mm:ss fff} {Level:u3}] {Message:lj}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "File",
|
|
"Args": {
|
|
"path": "logs/.log",
|
|
"rollingInterval": "Day",
|
|
"outputTemplate": "{NewLine}[{Timestamp:yyyy-MM-dd HH:mm:ss,fff} {Level:u3}] {Message:lj}"
|
|
}
|
|
},
|
|
{
|
|
"Name": "Elasticsearch",
|
|
"Args": {
|
|
"nodeUris": "http://192.168.80.56:9200",
|
|
"indexFormat": "log_channel_{0:yyyy.MM.dd}",
|
|
"autoRegisterTemplate": true,
|
|
"autoRegisterTemplateVersion": "ESv7",
|
|
"connectionGlobalHeaders": "Authorization=Basic ZWxhc3RpYzpzanp5YWRtaW4=;"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"QiChaCha": {
|
|
"ApiUrl": "http://api.qichacha.com",
|
|
"Key": "3f07b46db1104426a7beec2a70b67334",
|
|
"SecretKey": "0DEDE94A0E14C5A060CF65F87A96FDDC",
|
|
"ValidDays": 180
|
|
}
|
|
|
|
}
|