Former-commit-id: e57e5b092319336963eb77c4a5c5ff55063e73e3
TangShanKaiPing
wanggang 6 years ago
parent 28f26eceed
commit 9e8c161029

@ -1,18 +0,0 @@
*.bak
*.suo
*.db
*.db-shm
*.db-wal
*.user
.vs
obj
Obj
bin
Bin
debug
Debug
release
Release
Logs
logs
node_modules

@ -1,11 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Ocelot" Version="13.8.0" />
</ItemGroup>
</Project>

@ -1,25 +0,0 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
namespace ApiGateway
{
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.UseConfiguration(new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile("gateway.json")
.Build())
.UseStartup<Startup>();
});
}
}

@ -1,27 +0,0 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:80",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"ApiGateway": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "http://localhost:80",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

@ -1,33 +0,0 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Ocelot.DependencyInjection;
using Ocelot.Middleware;
namespace ApiGateway
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
public void ConfigureServices(IServiceCollection services)
{
services.AddOcelot();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseOcelot();
}
}
}

@ -1,9 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

@ -1,11 +0,0 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"server.urls": "http://*:80"
}

@ -1,115 +0,0 @@
{
"ReRoutes": [
{
"DownstreamPathTemplate": "/UserCenter",
"UpstreamPathTemplate": "/UserCenter",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8010
}
]
},
{
"DownstreamPathTemplate": "/UserCenter{everything}",
"UpstreamPathTemplate": "/UserCenter{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8010
}
]
},
{
"DownstreamPathTemplate": "/IoTCenter",
"UpstreamPathTemplate": "/IoTCenter",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8011
}
],
"UpstreamHttpMethod": [ "Get", "Post", "Head", "Options", "Put", "Delete", "Patch", "Trace" ]
},
{
"DownstreamPathTemplate": "/IoTCenter{everything}",
"UpstreamPathTemplate": "/IoTCenter{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8011
}
],
"UpstreamHttpMethod": [ "Get", "Post", "Head", "Options", "Put", "Delete", "Patch", "Trace" ]
},
{
"DownstreamPathTemplate": "/StudyCenter",
"UpstreamPathTemplate": "/StudyCenter",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8012
}
],
"UpstreamHttpMethod": [ "Get", "Post", "Head", "Options", "Put", "Delete", "Patch", "Trace" ]
},
{
"DownstreamPathTemplate": "/StudyCenter{everything}",
"UpstreamPathTemplate": "/StudyCenter{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8012
}
],
"UpstreamHttpMethod": [ "Get", "Post", "Head", "Options", "Put", "Delete", "Patch", "Trace" ]
},
{
"DownstreamPathTemplate": "/ManagementCenter",
"UpstreamPathTemplate": "/ManagementCenter",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8013
}
],
"UpstreamHttpMethod": [ "Get", "Post", "Head", "Options", "Put", "Delete", "Patch", "Trace" ]
},
{
"DownstreamPathTemplate": "/ManagementCenter{everything}",
"UpstreamPathTemplate": "/ManagementCenter{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8013
}
],
"UpstreamHttpMethod": [ "Get", "Post", "Head", "Options", "Put", "Delete", "Patch", "Trace" ]
},
{
"Priority": 0,
"DownstreamPathTemplate": "/",
"UpstreamPathTemplate": "/",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8020
}
],
"UpstreamHttpMethod": [ "Get", "Post", "Head", "Options", "Put", "Delete", "Patch", "Trace" ]
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost"
}
}

@ -1 +0,0 @@
{"KeyId":"3OnZo9GfomdZ5D9bQTL70A","Parameters":{"D":"kwKiKiyVzv6J2zT4iDmUgSxXmiBUb3SwS+lE5v/j7LhZfmTnyS5+hpCZ/jOpIbj4nxPTzv2ZfUb1C86oYegHcEPUUFxNqdyP0zqVY+akuC+oh8cF+kXfilc+sc3wvUvJ73g/WRzMgqYrb5tWDMW0xfBRBjOwOikwh9u9PlIg+MHAFoI3Hykaa7QkUtvIGyGsFzJo+cuj9pA+rjO+GYCxV3WCHrvV5YGzd4jPauOJBwa+hO2V75jJ8KUmZ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Veph7ZKdvrGBJqOseZpXKxx6P8maa/T+lW2y1fxjo64rx7qBl6ACOAuMEZXBNrP223qXf0FLQTO7Qfc=","Q":"12V6q4tee2tNtyTfOfLadIl2GX2AjIgdxNXbDuDPJcSNjPVBA73XoOgURP3u42PYDJqxs5XG0a5WGxr86p5J9ov6Om6pCHFCjWCtNDCPnAUz7aZND8eY6tD6alQgt/gNbvdzbtxuGCT7907RGCK1SjeJEn1sQYXVdFvA9LL/xFM="}}

@ -31,7 +31,7 @@
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
<PackageReference Include="Serilog.Sinks.RollingFile" Version="3.3.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="5.0.0-rc5" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.0.0-rc4" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.0.0-rc5" />
<PackageReference Include="System.Drawing.Common" Version="4.7.0" />
<PackageReference Include="System.Management" Version="4.7.0" />
<PackageReference Include="ValueInjecter" Version="3.2.0" />

@ -342,7 +342,7 @@ namespace Infrastructure.Web
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "API V1");
c.SwaggerEndpoint("v1/swagger.json", "API V1");
});
}

Loading…
Cancel
Save