Compare commits
23 Commits
cbd3accf72
...
feat/user-
| Author | SHA1 | Date | |
|---|---|---|---|
| f60bb79920 | |||
| d113d4fcdd | |||
| 59963d7d4c | |||
| 5843e9efa8 | |||
| 5c4dec8e7c | |||
| 90a0751d09 | |||
| d2793f476a | |||
| a6140cab92 | |||
|
|
6ade388cd7 | ||
|
|
23e73aae19 | ||
|
|
23d73e0671 | ||
|
|
72b1c58b72 | ||
|
|
4173c3d96a | ||
|
|
97a20fdb8f | ||
|
|
4da1bc7617 | ||
|
|
78a58568fc | ||
|
|
9844cd16e8 | ||
|
|
896eee35bd | ||
|
|
8a8f77c4d5 | ||
|
|
08e3cdddb0 | ||
|
|
e1bd477753 | ||
|
|
174338af5d | ||
|
|
e3be4f5e6f |
@@ -1,19 +1,20 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Version>1.0.0</Version>
|
<Version>1.1.0</Version>
|
||||||
<AssemblyVersion>1.0.0</AssemblyVersion>
|
<AssemblyVersion>1.1.0</AssemblyVersion>
|
||||||
<FileVersion>1.0.0</FileVersion>
|
<FileVersion>1.1.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="NLog" Version="5.4.0" />
|
<PackageReference Include="NLog" Version="5.4.0" />
|
||||||
<PackageReference Include="NLog.Extensions.Logging" Version="5.4.0" />
|
<PackageReference Include="NLog.Extensions.Logging" Version="5.4.0" />
|
||||||
<PackageReference Include="NLog.Web.AspNetCore" Version="5.4.0" />
|
<PackageReference Include="NLog.Web.AspNetCore" Version="5.4.0" />
|
||||||
<PackageReference Include="Ocelot" Version="22.0.1" />
|
<PackageReference Include="Ocelot" Version="23.4.3" />
|
||||||
|
<PackageReference Include="Ocelot.Cache.CacheManager" Version="23.4.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
18
Program.cs
18
Program.cs
@@ -2,6 +2,7 @@ using NLog;
|
|||||||
using NLog.Web;
|
using NLog.Web;
|
||||||
using Ocelot.DependencyInjection;
|
using Ocelot.DependencyInjection;
|
||||||
using Ocelot.Middleware;
|
using Ocelot.Middleware;
|
||||||
|
using Ocelot.Cache.CacheManager;
|
||||||
|
|
||||||
var logger = LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();
|
var logger = LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();
|
||||||
logger.Info("Logging initialized.");
|
logger.Info("Logging initialized.");
|
||||||
@@ -9,13 +10,23 @@ logger.Info("Logging initialized.");
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
builder.Logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
|
||||||
|
|
||||||
|
if (!builder.Environment.IsDevelopment())
|
||||||
|
{
|
||||||
|
builder.Logging.ClearProviders();
|
||||||
|
builder.Host.UseNLog();
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure to add the Ocelot configuration file
|
// Make sure to add the Ocelot configuration file
|
||||||
var suffix = builder.Environment.IsDevelopment() ? ".Development" : "";
|
var suffix = builder.Environment.IsDevelopment() ? ".Development" : "";
|
||||||
builder.Configuration.AddJsonFile($"ocelot{suffix}.json");
|
builder.Configuration.AddJsonFile($"ocelot{suffix}.json");
|
||||||
|
|
||||||
// Add Ocelot services
|
// Add Ocelot services
|
||||||
builder.Services.AddOcelot();
|
builder.Services
|
||||||
|
.AddOcelot()
|
||||||
|
.AddCacheManager(x => x.WithDictionaryHandle());
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
||||||
@@ -24,10 +35,7 @@ try
|
|||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|
||||||
// Use Ocelot middleware in an appropriate way
|
// Use Ocelot middleware in an appropriate way
|
||||||
app.UseEndpoints(endpoints =>
|
app.MapControllers();
|
||||||
{
|
|
||||||
endpoints.MapControllers();
|
|
||||||
});
|
|
||||||
|
|
||||||
app.UseOcelot().Wait();
|
app.UseOcelot().Wait();
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": true,
|
"launchBrowser": true,
|
||||||
"launchUrl": "swagger",
|
"launchUrl": "swagger/index.html",
|
||||||
"applicationUrl": "https://localhost:7052;http://localhost:5028",
|
"applicationUrl": "https://localhost:7052;http://localhost:5028",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
"NLog": {
|
"NLog": {
|
||||||
"throwConfigExceptions": true,
|
"throwConfigExceptions": true,
|
||||||
"variables": {
|
"variables": {
|
||||||
"logDirectory": "E:\\LogFiles\\Digital Data\\workFlow.Gateway",
|
"logDirectory": "E:\\LogFiles\\Digital Data\\UserManager.Gateway",
|
||||||
"logFileNamePrefix": "${shortdate}-workFlow.Gateway"
|
"logFileNamePrefix": "${shortdate}-UserManager.Gateway"
|
||||||
},
|
},
|
||||||
"targets": {
|
"targets": {
|
||||||
"infoLogs": {
|
"infoLogs": {
|
||||||
|
|||||||
@@ -2,72 +2,79 @@
|
|||||||
"Routes": [
|
"Routes": [
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/swagger/{route}",
|
"DownstreamPathTemplate": "/swagger/{route}",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
|
"Port": 7103
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/swagger/{route}",
|
||||||
|
"UpstreamhttpsMethod": [
|
||||||
|
"Get"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/swagger/auth/{route}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "172.24.12.39",
|
||||||
"Port": 9090
|
"Port": 9090
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/swagger/auth/{route}",
|
"UpstreamPathTemplate": "/swagger/auth/{route}",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [
|
||||||
"Get"
|
"Get"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/swagger/{route}",
|
"DownstreamPathTemplate": "/api/Auth/user-manager?cookie=true",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "http",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "172.24.12.39",
|
||||||
"Port": 8088
|
"Port": 9090
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/swagger/{route}",
|
"UpstreamPathTemplate": "/api/Auth/login",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [ "Post" ]
|
||||||
"Get"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/Auth/{route}",
|
"DownstreamPathTemplate": "/api/Auth/check",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 8088
|
"Port": 7103
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/Auth/{route}",
|
"UpstreamPathTemplate": "/api/Auth/check",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [ "Get" ]
|
||||||
"Get",
|
|
||||||
"Post"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/Auth/login/{id}",
|
"DownstreamPathTemplate": "/api/Auth/logout",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 8088
|
"Port": 7103
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/Auth/login/{id}",
|
"UpstreamPathTemplate": "/api/Auth/logout",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [ "Post" ]
|
||||||
"Post"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/{route}",
|
"DownstreamPathTemplate": "/api/{route}",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 8088
|
"Port": 7103
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/{route}",
|
"UpstreamPathTemplate": "/api/{route}",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [
|
||||||
"Get",
|
"Get",
|
||||||
"Post",
|
"Post",
|
||||||
"Put",
|
"Put",
|
||||||
@@ -75,22 +82,91 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/{route}/{id}",
|
"DownstreamPathTemplate": "/api/{route1}/{route2}",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 7103
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{route1}/{route2}",
|
||||||
|
"UpstreamhttpsMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{route1}/{route2}/{route3}",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 7103
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{route1}/{route2}/{route3}",
|
||||||
|
"UpstreamhttpsMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "http",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 8088
|
"Port": 4200
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/{route}{id}",
|
"UpstreamPathTemplate": "/",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [
|
||||||
"Get",
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{route}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 4200
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/{route}",
|
||||||
|
"UpstreamhttpsMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{route1}/{route2}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 4200
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/{route1}/{route2}",
|
||||||
|
"UpstreamhttpsMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
"Delete"
|
"Delete"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"GlobalConfiguration": {
|
"GlobalConfiguration": {
|
||||||
"BaseUrl": "https://localhost:7052"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
154
ocelot.json
154
ocelot.json
@@ -2,72 +2,79 @@
|
|||||||
"Routes": [
|
"Routes": [
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/swagger/{route}",
|
"DownstreamPathTemplate": "/swagger/{route}",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 9090
|
"Port": 7103
|
||||||
}
|
|
||||||
],
|
|
||||||
"UpstreamPathTemplate": "/swagger/auth/{route}",
|
|
||||||
"UpstreamHttpMethod": [
|
|
||||||
"Get"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"DownstreamPathTemplate": "/swagger/{route}",
|
|
||||||
"DownstreamScheme": "http",
|
|
||||||
"DownstreamHostAndPorts": [
|
|
||||||
{
|
|
||||||
"Host": "localhost",
|
|
||||||
"Port": 8088
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/swagger/{route}",
|
"UpstreamPathTemplate": "/swagger/{route}",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [
|
||||||
"Get"
|
"Get"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/Auth/{route}",
|
"DownstreamPathTemplate": "/swagger/auth/{route}",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 8088
|
"Port": 7192
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/Auth/{route}",
|
"UpstreamPathTemplate": "/swagger/auth/{route}",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [
|
||||||
"Get",
|
"Get"
|
||||||
"Post"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/Auth/login/{id}",
|
"DownstreamPathTemplate": "/api/Auth/user-manager?cookie=true",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 8088
|
"Port": 7192
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/Auth/login/{id}",
|
"UpstreamPathTemplate": "/api/Auth/login",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [ "Post" ]
|
||||||
"Post"
|
},
|
||||||
]
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/Auth/check",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 7103
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/Auth/check",
|
||||||
|
"UpstreamhttpsMethod": [ "Get" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/Auth/logout",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 7103
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/Auth/logout",
|
||||||
|
"UpstreamhttpsMethod": [ "Post" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/{route}",
|
"DownstreamPathTemplate": "/api/{route}",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 8088
|
"Port": 7103
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/{route}",
|
"UpstreamPathTemplate": "/api/{route}",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [
|
||||||
"Get",
|
"Get",
|
||||||
"Post",
|
"Post",
|
||||||
"Put",
|
"Put",
|
||||||
@@ -75,22 +82,91 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/{route}/{id}",
|
"DownstreamPathTemplate": "/api/{route1}/{route2}",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 7103
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{route1}/{route2}",
|
||||||
|
"UpstreamhttpsMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/{route1}/{route2}/{route3}",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 7103
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/api/{route1}/{route2}/{route3}",
|
||||||
|
"UpstreamhttpsMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "http",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 8088
|
"Port": 4200
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/{route}{id}",
|
"UpstreamPathTemplate": "/",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamhttpsMethod": [
|
||||||
"Get",
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{route}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 4200
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/{route}",
|
||||||
|
"UpstreamhttpsMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/{route1}/{route2}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 4200
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/{route1}/{route2}",
|
||||||
|
"UpstreamhttpsMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
"Delete"
|
"Delete"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"GlobalConfiguration": {
|
"GlobalConfiguration": {
|
||||||
"BaseUrl": "https://localhost:7052"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user