171 lines
3.8 KiB
JSON
171 lines
3.8 KiB
JSON
{
|
||
"Logging": {
|
||
"LogLevel": {
|
||
"Default": "Information",
|
||
"Microsoft": "Warning",
|
||
"Microsoft.AspNetCore": "Warning",
|
||
"Microsoft.Hosting.Lifetime": "Information",
|
||
"Microsoft.Extensions.Diagnostics.HealthChecks": "Warning"
|
||
}
|
||
},
|
||
"AllowedHosts": "*",
|
||
"Kestrel": {
|
||
"Endpoints": {
|
||
"Default": {
|
||
"Url": "http://*:38030"
|
||
},
|
||
"Grpc": {
|
||
"Url": "http://*:38031",
|
||
"Protocols": "Http2"
|
||
}
|
||
}
|
||
},
|
||
"RpcConfig": {
|
||
"Http": {
|
||
"Enable": true,
|
||
"AssemblyNames": ["ZhonTai.Admin.Contracts"]
|
||
},
|
||
"Grpc": {
|
||
"Enable": true,
|
||
"AssemblyNames": [
|
||
"ZhonTai.Admin.Core",
|
||
"NPP.SmartSchedue.Api.Contracts",
|
||
"NPP.EAM.Api.Contracts",
|
||
"ZhonTai.Admin.Contracts"
|
||
],
|
||
"ServerAssemblyNames": ["ZhonTai.Admin", "NPP.EAM.Api"]
|
||
},
|
||
"Endpoints": [
|
||
{
|
||
"Name": "admin",
|
||
"HttpUrl": "http://localhost:38010",
|
||
"GrpcUrl": "http://localhost:38011"
|
||
},
|
||
{
|
||
"Name": "eam",
|
||
"HttpUrl": "http://localhost:38020",
|
||
"GrpcUrl": "http://localhost:38021"
|
||
}
|
||
]
|
||
},
|
||
//应用配置
|
||
"AppSettings": {
|
||
//使用配置中心
|
||
"UseConfigCenter": true,
|
||
//配置中心路径
|
||
"ConfigCenterPath": "ConfigCenter"
|
||
},
|
||
//外部服务配置
|
||
"Services": {
|
||
"EAM": {
|
||
"BaseUrl": "http://localhost:38020",
|
||
"Timeout": 30000
|
||
}
|
||
},
|
||
//分布式事务
|
||
"CAP": {
|
||
"RabbitMq": {
|
||
"HostName": "10.248.5.157",
|
||
"Port": 15672,
|
||
"UserName": "npp",
|
||
"Password": "Npp@rabbitmq"
|
||
}
|
||
},
|
||
/*
|
||
//发送邮件验证码
|
||
await AppInfo.GetRequiredService<ICapPublisher>().PublishAsync(SubscribeNames.EmailSingleSend,
|
||
new EamilSingleSendEvent
|
||
{
|
||
ToEmail = new EamilSingleSendEvent.Models.EmailModel
|
||
{
|
||
Address = ""
|
||
},
|
||
Subject = "中台Admin账号邮件验证码",
|
||
Body = code
|
||
});
|
||
*/
|
||
//邮件配置
|
||
"Email": {
|
||
//主机
|
||
"Host": "smtp.qq.com",
|
||
//端口 465、587、25
|
||
"Port": 465,
|
||
//是否使用SSL
|
||
"UseSsl": true,
|
||
//邮箱账号
|
||
"UserName": "",
|
||
//邮箱密码
|
||
"Password": "",
|
||
//发件人
|
||
"FromEmail": {
|
||
//名称
|
||
"Name": "",
|
||
//地址
|
||
"Address": ""
|
||
},
|
||
//收件人
|
||
"ToEmail": {
|
||
//名称
|
||
"Name": "",
|
||
//地址
|
||
"Address": ""
|
||
}
|
||
},
|
||
//任务调度配置
|
||
"TaskScheduler": {
|
||
//进程启动信息
|
||
"ProcessStartInfo": {
|
||
"FileName": "C:/grpcurl_1.8.7/grpcurl",
|
||
//工作目录
|
||
"WorkingDirectory": ""
|
||
},
|
||
//告警邮件
|
||
"AlerEmail": {
|
||
"Enable": true,
|
||
"Address": ""
|
||
}
|
||
},
|
||
//滑块验证码
|
||
"SlideCaptcha": {
|
||
"ExpirySeconds": 300, // 缓存过期时长
|
||
"StoreageKeyPrefix": "app:captcha:", // 缓存前缀
|
||
"Tolerant": 0.02, // 容错值(校验时用,缺口位置与实际滑动位置匹配容错范围)
|
||
"Backgrounds": [
|
||
// 背景图配置
|
||
{
|
||
"Type": "file",
|
||
"Data": "wwwroot/captcha/jigsaw/backgrounds/1.jpg"
|
||
},
|
||
{
|
||
"Type": "file",
|
||
"Data": "wwwroot/captcha/jigsaw/backgrounds/2.jpg"
|
||
},
|
||
{
|
||
"Type": "file",
|
||
"Data": "wwwroot/captcha/jigsaw/backgrounds/3.jpg"
|
||
},
|
||
{
|
||
"Type": "file",
|
||
"Data": "wwwroot/captcha/jigsaw/backgrounds/4.jpg"
|
||
},
|
||
{
|
||
"Type": "file",
|
||
"Data": "wwwroot/captcha/jigsaw/backgrounds/5.jpg"
|
||
}
|
||
],
|
||
// Templates不配置,则使用默认模板
|
||
"Templates": [
|
||
//{
|
||
// "Slider": {
|
||
// "Type": "file",
|
||
// "Data": "wwwroot/captcha/jigsaw/templates/1/transparent.png"
|
||
// },
|
||
// "Hole": {
|
||
// "Type": "file",
|
||
// "Data": "wwwroot/captcha/jigsaw/templates/1/dark.png"
|
||
// }
|
||
//}
|
||
]
|
||
}
|
||
}
|