AFR对接
parent
44e761a2d8
commit
1c6d9a55e5
@ -0,0 +1,29 @@
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using NLog.Extensions.Logging;
|
||||
using NLog.Web;
|
||||
|
||||
namespace djy_AfrApi
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
CreateHostBuilder(args).Build().Run();
|
||||
}
|
||||
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
Host.CreateDefaultBuilder(args)
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
webBuilder.UseStartup<Startup>();
|
||||
}).ConfigureLogging(logging =>
|
||||
{
|
||||
logging.ClearProviders();
|
||||
//logging.SetMinimumLevel(LogLevel.Information);
|
||||
logging.AddConsole();
|
||||
logging.AddDebug();
|
||||
}).UseNLog();
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
{
|
||||
"profiles": {
|
||||
"djy_AfrApi": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": false,
|
||||
"launchUrl": "swagger",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"applicationUrl": "http://localhost:30818"
|
||||
},
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
}
|
||||
},
|
||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||
"iisSettings": {
|
||||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:31094",
|
||||
"sslPort": 0
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
{
|
||||
// 此文件为开发环境使用的配置文件
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Urls": "http://*:30818",
|
||||
"WebConfig": {
|
||||
"IdentServerUrl": "http://60.209.125.238:40501",
|
||||
"WebId": 236,
|
||||
"Area": "山东省|青岛市|市南区",
|
||||
"DesKey": "2Fv6I7oV6AlCFEbN",
|
||||
"jwt_Audience": "admin",
|
||||
"jwt_Issuer": "shuosoft",
|
||||
"jwt_Secretkey": "IBFoxBpwAW2rSDIsYiHJL5aZ3Rpr5Uaph4t6Eqm2Fv6I7oV6AlCFEbNWRXyJT653iOFIbWOcOF3sMRSSUelRSbIL6RzOCOfIk3hhxyn9Aj4HxEE08zqlRloA0CWX7MQ0",
|
||||
"jwt_Expiration": 1440,
|
||||
"StrFilte": "肏,妈妈,操你妈,草泥马,屌,傻逼,骚逼,王八蛋,你妈的,+,=,-,_,/,*,&,@,.,,,*",
|
||||
"ShopPower": 1,
|
||||
"ConnName": "sqldb",
|
||||
"cache_time": 10,
|
||||
"WebHostUrl": "http://127.0.0.1:30818",
|
||||
"Redis": "192.168.0.80:6379,password=,defaultDatabase=12",
|
||||
"RedisDb": 12,
|
||||
"Rbmq_Host": "",
|
||||
"Rbmq_UserName": "admin",
|
||||
"Rbmq_Password": "admin",
|
||||
"Rbmq_Sqlhost": "Data Source =60.209.125.238; Initial Catalog=djy_logs; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true",
|
||||
"DapperDbString": "Data Source =60.209.125.238,32009; Initial Catalog=DevAMS; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true;",
|
||||
"DataConnList": [
|
||||
{
|
||||
"SysKey": "AMS",
|
||||
"TitleName": "AMS",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source =60.209.125.238,32009; Initial Catalog=DevAMS; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true;"
|
||||
},
|
||||
{
|
||||
"SysKey": "Common",
|
||||
"TitleName": "Common",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source =60.209.125.238,32009; Initial Catalog=DevCommonDB; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true;"
|
||||
},
|
||||
{
|
||||
"SysKey": "djydb",
|
||||
"TitleName": "pingtai",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source =60.209.125.238,32009; Initial Catalog=TestDsPingTai; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true"
|
||||
},
|
||||
{
|
||||
"SysKey": "logsdb",
|
||||
"TitleName": "日志库",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source =60.209.125.238,32009; Initial Catalog=TestDjyLogs; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
{
|
||||
// 此文件为正式环境使用的配置文件
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Urls": "http://*:待配置待配置待配置待配置待配置待配置待配置待配置",
|
||||
"WebConfig": {
|
||||
"IdentServerUrl": "http://djy-identity.myshipping.net",
|
||||
"WebId": 236,
|
||||
"Area": "山东省|青岛市|市南区",
|
||||
"DesKey": "2Fv6I7oV6AlCFEbN",
|
||||
"jwt_Audience": "admin",
|
||||
"jwt_Issuer": "shuosoft",
|
||||
"jwt_Secretkey": "IBFoxBpwAW2rSDIsYiHJL5aZ3Rpr5Uaph4t6Eqm2Fv6I7oV6AlCFEbNWRXyJT653iOFIbWOcOF3sMRSSUelRSbIL6RzOCOfIk3hhxyn9Aj4HxEE08zqlRloA0CWX7MQ0",
|
||||
"jwt_Expiration": 1440,
|
||||
"StrFilte": "肏,妈妈,操你妈,草泥马,屌,傻逼,骚逼,王八蛋,你妈的,+,=,-,_,/,*,&,@,.,,,*",
|
||||
"ShopPower": 1,
|
||||
"ConnName": "sqldb",
|
||||
"cache_time": 10,
|
||||
"WebHostUrl": "https://zh-userapi.jingyiji.net",
|
||||
"Redis": "172.31.85.169:6379,defaultDatabase=待配置,",
|
||||
"RedisDb": "待配置",
|
||||
"Rbmq_Host": "172.31.85.169:13866",
|
||||
"Rbmq_UserName": "ams",
|
||||
"Rbmq_Password": "djy_ams",
|
||||
"Rbmq_Sqlhost": "Data Source =172.31.85.154; Initial Catalog=djy_logs; Persist Security Info=True; User ID =sa; Password=QDdjy#2020*;pooling=true",
|
||||
"DapperDbString": "Data Source =172.31.85.161; Initial Catalog=AMS; Persist Security Info=True; User ID =sa; Password=QDdjy#2020*;pooling=true;",
|
||||
"DataConnList": [
|
||||
{
|
||||
"SysKey": "AMS",
|
||||
"TitleName": "AMS",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source=172.31.85.161; Initial Catalog=AMS; Persist Security Info=True; User ID =sa; Password=QDdjy#2020*;pooling=true;"
|
||||
},
|
||||
{
|
||||
"SysKey": "Common",
|
||||
"TitleName": "Common",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source=172.31.85.161; Initial Catalog=CommonDB; Persist Security Info=True; User ID =sa; Password=QDdjy#2020*;pooling=true;"
|
||||
},
|
||||
{
|
||||
"SysKey": "djydb",
|
||||
"TitleName": "pingtai",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source =172.31.85.154; Initial Catalog=DsPingTai; Persist Security Info=True; User ID =sa; Password=QDdjy#2020*;pooling=true"
|
||||
|
||||
},
|
||||
{
|
||||
"SysKey": "logsdb",
|
||||
"TitleName": "日志库",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source=172.31.85.154,1433; Initial Catalog=djy_logs; Persist Security Info=True; User ID =sa; Password=QDdjy#2020*;pooling=true"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
{
|
||||
// 此文件为测试环境使用的配置文件
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Urls": "http://*:待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置",
|
||||
"WebConfig": {
|
||||
"IdentServerUrl": "http://60.209.125.238:40501",
|
||||
"WebId": 236,
|
||||
"Area": "山东省|青岛市|市南区",
|
||||
"DesKey": "2Fv6I7oV6AlCFEbN",
|
||||
"jwt_Audience": "admin",
|
||||
"jwt_Issuer": "shuosoft",
|
||||
"jwt_Secretkey": "IBFoxBpwAW2rSDIsYiHJL5aZ3Rpr5Uaph4t6Eqm2Fv6I7oV6AlCFEbNWRXyJT653iOFIbWOcOF3sMRSSUelRSbIL6RzOCOfIk3hhxyn9Aj4HxEE08zqlRloA0CWX7MQ0",
|
||||
"jwt_Expiration": 1440,
|
||||
"StrFilte": "肏,妈妈,操你妈,草泥马,屌,傻逼,骚逼,王八蛋,你妈的,+,=,-,_,/,*,&,@,.,,,*",
|
||||
"ShopPower": 1,
|
||||
"ConnName": "sqldb",
|
||||
"cache_time": 10,
|
||||
"WebHostUrl": "http://127.0.0.1:30818",
|
||||
"Redis": "192.168.0.80:6379,password=,defaultDatabase=待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置",
|
||||
"RedisDb": "待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置待配置",
|
||||
"Rbmq_Host": "",
|
||||
"Rbmq_UserName": "admin",
|
||||
"Rbmq_Password": "admin",
|
||||
"Rbmq_Sqlhost": "Data Source =60.209.125.238; Initial Catalog=djy_logs; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true",
|
||||
"DapperDbString": "Data Source =60.209.125.238,32009; Initial Catalog=DevAMS; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true;",
|
||||
"DataConnList": [
|
||||
{
|
||||
"SysKey": "AMS",
|
||||
"TitleName": "AMS",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source =60.209.125.238,32009; Initial Catalog=DevAMS; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true;"
|
||||
},
|
||||
{
|
||||
"SysKey": "Common",
|
||||
"TitleName": "Common",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source =60.209.125.238,32009; Initial Catalog=DevCommonDB; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true;"
|
||||
},
|
||||
{
|
||||
"SysKey": "djydb",
|
||||
"TitleName": "pingtai",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source =60.209.125.238,32009; Initial Catalog=TestDsPingTai; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true"
|
||||
},
|
||||
{
|
||||
"SysKey": "logsdb",
|
||||
"TitleName": "日志库",
|
||||
"Index": 100,
|
||||
"DataType": 1,
|
||||
"Status": 0,
|
||||
"ConnString": "Data Source =60.209.125.238,32009; Initial Catalog=TestDjyLogs; Persist Security Info=True; User ID =sa; Password=sa@djy.net;pooling=true"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,34 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Milldlewares\FluentResponseBodyMiddleware.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="FreeRedis" Version="1.2.11" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.17" />
|
||||
<PackageReference Include="NLog.Database" Version="5.2.7" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" />
|
||||
<PackageReference Include="NLog.Web.AspNetCore" Version="5.3.7" />
|
||||
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="3.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Djy.Common\Common.csproj" />
|
||||
<ProjectReference Include="..\djy.IService\djy.IService.csproj" />
|
||||
<ProjectReference Include="..\djy.Model\djy.Model.csproj" />
|
||||
<ProjectReference Include="..\djy.Service\djy.Service.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Update="NLog.config">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Controller_SelectedScaffolderID>ApiControllerEmptyScaffolder</Controller_SelectedScaffolderID>
|
||||
<Controller_SelectedScaffolderCategoryPath>root/Common/Api</Controller_SelectedScaffolderCategoryPath>
|
||||
<ActiveDebugProfile>djy_AfrApi</ActiveDebugProfile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Loading…
Reference in New Issue