添加配置文件环境
This commit is contained in:
parent
5c58da5e58
commit
9463dfd5d7
|
|
@ -1,8 +1,33 @@
|
||||||
{
|
{
|
||||||
"Logging": {
|
"ConnectionStrings": {
|
||||||
"LogLevel": {
|
"MiaoYu_SqlServer_Db": "Server=192.168.195.2;Database=MiaoYu;User Id=zpc;Password=zpc;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;"
|
||||||
"Default": "Information",
|
},
|
||||||
"Microsoft.AspNetCore": "Warning"
|
|
||||||
|
//腾讯云配置
|
||||||
|
"TencentCloud": {
|
||||||
|
"SecretId": "AKIDLbhdP0Vs57yd7QZWu8A2jFbno8JKBUp6",
|
||||||
|
"SecretKey": "MlP5tcUG6mdj7TwOpDWnZNFGIrJY8eH4",
|
||||||
|
"SMSCode": {
|
||||||
|
//请求方式
|
||||||
|
"ReqMethod": "POST",
|
||||||
|
//超时时间
|
||||||
|
"Timeout": 30,
|
||||||
|
//短信应用ID:
|
||||||
|
"SmsSdkAppId": "1400923253",
|
||||||
|
//签名
|
||||||
|
"SignName": "上海寰梦科技发展",
|
||||||
|
//模板编号
|
||||||
|
"TemplateId": "2209122"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
//服务器配置
|
||||||
|
"Kestrel": {
|
||||||
|
"Endpoints": {
|
||||||
|
"Http": {
|
||||||
|
"Url": "http://*:90"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
45
src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json
Normal file
45
src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
{
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"MiaoYu_SqlServer_Db": "Server=192.168.195.2;Database=MiaoYu;User Id=zpc;Password=zpc;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;"
|
||||||
|
},
|
||||||
|
|
||||||
|
//腾讯云配置
|
||||||
|
"TencentCloud": {
|
||||||
|
"SecretId": "AKIDLbhdP0Vs57yd7QZWu8A2jFbno8JKBUp6",
|
||||||
|
"SecretKey": "MlP5tcUG6mdj7TwOpDWnZNFGIrJY8eH4",
|
||||||
|
"SMSCode": {
|
||||||
|
//请求方式
|
||||||
|
"ReqMethod": "POST",
|
||||||
|
//超时时间
|
||||||
|
"Timeout": 30,
|
||||||
|
//短信应用ID:
|
||||||
|
"SmsSdkAppId": "1400923253",
|
||||||
|
//签名
|
||||||
|
"SignName": "上海寰梦科技发展",
|
||||||
|
//模板编号
|
||||||
|
"TemplateId": "2209122"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"JwtTokenConfig": {
|
||||||
|
//加密字段
|
||||||
|
"secret": "XtrtwJIcxRHWInEMsCyUdwcRKLNHHAcQ",
|
||||||
|
//发行人
|
||||||
|
"issuer": "HuanMeng",
|
||||||
|
//受众
|
||||||
|
"audience": "HuanMengApp",
|
||||||
|
//token时间,分钟
|
||||||
|
"accessTokenExpiration": 10080,
|
||||||
|
//刷新token时间.分钟
|
||||||
|
"refreshTokenExpiration": 10100
|
||||||
|
|
||||||
|
},
|
||||||
|
"AllowedHosts": "*",
|
||||||
|
//服务器配置
|
||||||
|
"Kestrel": {
|
||||||
|
"Endpoints": {
|
||||||
|
"Http": {
|
||||||
|
"Url": "http://*:90"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user