diff --git a/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Development.json b/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Development.json index 0c208ae..e87079f 100644 --- a/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Development.json +++ b/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Development.json @@ -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" + } } } } diff --git a/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json b/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json new file mode 100644 index 0000000..b66519b --- /dev/null +++ b/src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json @@ -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" + } + } + } +}