Compare commits
7 Commits
dccaaf2feb
...
feat/envel
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
941e47ba3e | ||
|
|
a76afdda34 | ||
|
|
0d0e4675ad | ||
|
|
6ade388cd7 | ||
|
|
5f21002e4f | ||
|
|
6be3d5373a | ||
|
|
d34ba75deb |
@@ -4,9 +4,9 @@
|
||||
<TargetFrameworks>net7.0;net8.0;net9.0</TargetFrameworks>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>1.1.0</Version>
|
||||
<AssemblyVersion>1.1.0</AssemblyVersion>
|
||||
<FileVersion>1.1.0</FileVersion>
|
||||
<Version>1.2.0</Version>
|
||||
<AssemblyVersion>1.2.0</AssemblyVersion>
|
||||
<FileVersion>1.2.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -10,6 +10,14 @@ try
|
||||
{
|
||||
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
|
||||
var suffix = builder.Environment.IsDevelopment() ? ".Development" : "";
|
||||
builder.Configuration.AddJsonFile($"ocelot{suffix}.json");
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"Routes": [
|
||||
{
|
||||
"DownstreamPathTemplate": "/swagger/{route}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
@@ -19,7 +19,7 @@
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/swagger/{route1}/{route2}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
@@ -36,7 +36,7 @@
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/scalar",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
@@ -53,7 +53,7 @@
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/scalar/{route}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
@@ -70,7 +70,7 @@
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/scalar/{route1}/{route2}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
@@ -86,32 +86,44 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/Auth/work-flow?cookie=false",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamPathTemplate": "/api/Auth/sign-flow-gen?cookie={cookie}",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 8088
|
||||
"Port": 7192
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/api/Auth?cookie={cookie}",
|
||||
"UpstreamHttpMethod": [ "Post" ]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/Auth/sign-flow-gen?cookie=false",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 7192
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/api/Auth",
|
||||
"UpstreamHttpMethod": [ "Post" ]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/Auth/check",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamPathTemplate": "/api/Auth/sign-flow-gen/login",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
"Port": 8088
|
||||
"Port": 7192
|
||||
}
|
||||
],
|
||||
"UpstreamPathTemplate": "/api/Auth/check",
|
||||
"UpstreamPathTemplate": "/api/Auth/form",
|
||||
"UpstreamHttpMethod": [ "Post" ]
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/{route}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
@@ -128,7 +140,7 @@
|
||||
},
|
||||
{
|
||||
"DownstreamPathTemplate": "/api/{route}/{id}",
|
||||
"DownstreamScheme": "http",
|
||||
"DownstreamScheme": "https",
|
||||
"DownstreamHostAndPorts": [
|
||||
{
|
||||
"Host": "localhost",
|
||||
|
||||
Reference in New Issue
Block a user