添加配置文件环境

This commit is contained in:
zpc 2024-07-18 04:01:57 +08:00
parent 5c58da5e58
commit 9463dfd5d7
2 changed files with 74 additions and 4 deletions

View File

@ -1,8 +1,33 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
"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"
}
},
"AllowedHosts": "*",
//
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://*:90"
}
}
}
}

View 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"
}
}
}
}