From 9463dfd5d79ca1581ceb68ce8dbc30e87e9bf8eb Mon Sep 17 00:00:00 2001 From: zpc Date: Thu, 18 Jul 2024 04:01:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../appsettings.Development.json | 33 ++++++++++++-- .../appsettings.Production.json | 45 +++++++++++++++++++ 2 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 src/2-api/HuanMeng.MiaoYu.WebApi/appsettings.Production.json 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" + } + } + } +}