Compare commits
11 Commits
master
...
feat/envel
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
941e47ba3e | ||
|
|
a76afdda34 | ||
|
|
0d0e4675ad | ||
|
|
5f21002e4f | ||
|
|
6be3d5373a | ||
|
|
d34ba75deb | ||
|
|
dccaaf2feb | ||
|
|
1957626ef2 | ||
|
|
7069938d34 | ||
|
|
84a25752b5 | ||
|
|
693a835191 |
@ -4,9 +4,9 @@
|
|||||||
<TargetFrameworks>net7.0;net8.0;net9.0</TargetFrameworks>
|
<TargetFrameworks>net7.0;net8.0;net9.0</TargetFrameworks>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Version>1.0.0</Version>
|
<Version>1.2.0</Version>
|
||||||
<AssemblyVersion>1.0.0</AssemblyVersion>
|
<AssemblyVersion>1.2.0</AssemblyVersion>
|
||||||
<FileVersion>1.0.0</FileVersion>
|
<FileVersion>1.2.0</FileVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -9,7 +9,7 @@ logger.Info("Logging initialized.");
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
builder.Logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
|
builder.Logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
|
||||||
|
|
||||||
if (!builder.Environment.IsDevelopment())
|
if (!builder.Environment.IsDevelopment())
|
||||||
|
|||||||
@ -11,7 +11,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||||||
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
|
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
|
||||||
<ExcludeApp_Data>false</ExcludeApp_Data>
|
<ExcludeApp_Data>false</ExcludeApp_Data>
|
||||||
<ProjectGuid>329f45bf-4c79-4a7b-9086-d6205617aa42</ProjectGuid>
|
<ProjectGuid>329f45bf-4c79-4a7b-9086-d6205617aa42</ProjectGuid>
|
||||||
<DesktopBuildPackageLocation>P:\Install .Net\0 DD - Smart UP\Gateway\WorkFlow\\.zip</DesktopBuildPackageLocation>
|
<DesktopBuildPackageLocation>P:\Install .Net\0 DD - Smart UP\Gateway\EnvelopeGeneratorGen\Net9Win64\$(Version)\$(Version).zip</DesktopBuildPackageLocation>
|
||||||
<PackageAsSingleFile>true</PackageAsSingleFile>
|
<PackageAsSingleFile>true</PackageAsSingleFile>
|
||||||
<DeployIisAppPath>Gateway</DeployIisAppPath>
|
<DeployIisAppPath>Gateway</DeployIisAppPath>
|
||||||
<_TargetId>IISWebDeployPackage</_TargetId>
|
<_TargetId>IISWebDeployPackage</_TargetId>
|
||||||
|
|||||||
@ -6,16 +6,87 @@
|
|||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 7120
|
"Port": 8088
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/swagger/{route}",
|
"UpstreamPathTemplate": "/swagger/{route}",
|
||||||
"UpstreamhttpsMethod": [
|
"UpstreamHttpMethod": [
|
||||||
"Get"
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/swagger/{route}",
|
"DownstreamPathTemplate": "/swagger/{route1}/{route2}",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8088
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/swagger/{route1}/{route2}",
|
||||||
|
"UpstreamHttpMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/scalar",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8088
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/scalar",
|
||||||
|
"UpstreamHttpMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/scalar/{route}",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8088
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/scalar/{route}",
|
||||||
|
"UpstreamHttpMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/scalar/{route1}/{route2}",
|
||||||
|
"DownstreamScheme": "https",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8088
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/scalar/{route1}/{route2}",
|
||||||
|
"UpstreamHttpMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/api/Auth/sign-flow-gen?cookie={cookie}",
|
||||||
"DownstreamScheme": "https",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
@ -23,13 +94,11 @@
|
|||||||
"Port": 7192
|
"Port": 7192
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/swagger/auth/{route}",
|
"UpstreamPathTemplate": "/api/Auth?cookie={cookie}",
|
||||||
"UpstreamhttpsMethod": [
|
"UpstreamHttpMethod": [ "Post" ]
|
||||||
"Get"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/Auth/work-flow?cookie=false",
|
"DownstreamPathTemplate": "/api/Auth/sign-flow-gen?cookie=false",
|
||||||
"DownstreamScheme": "https",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
@ -38,19 +107,19 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/Auth",
|
"UpstreamPathTemplate": "/api/Auth",
|
||||||
"UpstreamhttpsMethod": [ "Post" ]
|
"UpstreamHttpMethod": [ "Post" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/Auth/check",
|
"DownstreamPathTemplate": "/api/Auth/sign-flow-gen/login",
|
||||||
"DownstreamScheme": "https",
|
"DownstreamScheme": "https",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 7120
|
"Port": 7192
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/Auth/check",
|
"UpstreamPathTemplate": "/api/Auth/form",
|
||||||
"UpstreamhttpsMethod": [ "Post" ]
|
"UpstreamHttpMethod": [ "Post" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/api/{route}",
|
"DownstreamPathTemplate": "/api/{route}",
|
||||||
@ -58,11 +127,11 @@
|
|||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 7120
|
"Port": 8088
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/{route}",
|
"UpstreamPathTemplate": "/api/{route}",
|
||||||
"UpstreamhttpsMethod": [
|
"UpstreamHttpMethod": [
|
||||||
"Get",
|
"Get",
|
||||||
"Post",
|
"Post",
|
||||||
"Put",
|
"Put",
|
||||||
@ -75,17 +144,16 @@
|
|||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 7120
|
"Port": 8088
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/{route}{id}",
|
"UpstreamPathTemplate": "/api/{route}{id}",
|
||||||
"UpstreamhttpsMethod": [
|
"UpstreamHttpMethod": [
|
||||||
"Get",
|
"Get",
|
||||||
"Delete"
|
"Delete"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"GlobalConfiguration": {
|
"GlobalConfiguration": {
|
||||||
"BaseUrl": "https://localhost:7052"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
70
ocelot.json
70
ocelot.json
@ -11,21 +11,78 @@
|
|||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/swagger/{route}",
|
"UpstreamPathTemplate": "/swagger/{route}",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamHttpMethod": [
|
||||||
"Get"
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DownstreamPathTemplate": "/swagger/{route}",
|
"DownstreamPathTemplate": "/swagger/{route1}/{route2}",
|
||||||
"DownstreamScheme": "http",
|
"DownstreamScheme": "http",
|
||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 9090
|
"Port": 8088
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/swagger/auth/{route}",
|
"UpstreamPathTemplate": "/swagger/{route1}/{route2}",
|
||||||
"UpstreamHttpMethod": [
|
"UpstreamHttpMethod": [
|
||||||
"Get"
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/scalar",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8088
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/scalar",
|
||||||
|
"UpstreamHttpMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/scalar/{route}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8088
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/scalar/{route}",
|
||||||
|
"UpstreamHttpMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"DownstreamPathTemplate": "/scalar/{route1}/{route2}",
|
||||||
|
"DownstreamScheme": "http",
|
||||||
|
"DownstreamHostAndPorts": [
|
||||||
|
{
|
||||||
|
"Host": "localhost",
|
||||||
|
"Port": 8088
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"UpstreamPathTemplate": "/scalar/{route1}/{route2}",
|
||||||
|
"UpstreamHttpMethod": [
|
||||||
|
"Get",
|
||||||
|
"Post",
|
||||||
|
"Put",
|
||||||
|
"Delete"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -34,7 +91,7 @@
|
|||||||
"DownstreamHostAndPorts": [
|
"DownstreamHostAndPorts": [
|
||||||
{
|
{
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
"Port": 9090
|
"Port": 8088
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"UpstreamPathTemplate": "/api/Auth",
|
"UpstreamPathTemplate": "/api/Auth",
|
||||||
@ -86,6 +143,5 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"GlobalConfiguration": {
|
"GlobalConfiguration": {
|
||||||
"BaseUrl": "https://localhost:8443"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user