11 Commits

Author SHA1 Message Date
Developer 02
941e47ba3e Update logging configuration in Program.cs
Modified logging setup to use NLog only in non-development environments, while maintaining trace-level logging for development.
2025-05-11 11:14:19 +02:00
Developer 02
a76afdda34 Bump version to 1.2.0 in project file
Updated the `DigitalData.Gateway.csproj` to reflect
new versioning information, changing `Version`,
`AssemblyVersion`, and `FileVersion` from `1.1.0` to `1.2.0`.
2025-05-11 10:51:16 +02:00
Developer 02
0d0e4675ad Merge branch 'master' into feat/envelope-generator.gen.api 2025-05-09 23:21:28 +02:00
Developer 02
5f21002e4f Update port configuration in ocelot.Development.json
Changed the `Port` number for `DownstreamHostAndPorts` from `7174` to `8088` across multiple route definitions. Updated `DownstreamPathTemplate` and `UpstreamPathTemplate` for paths including `/swagger/{route}`, `/scalar`, and `/api/{route}`. Corrected the `UpstreamPathTemplate` for `/api/{route}/{id}` by removing an unnecessary slash before `{id}`.
2025-05-09 23:19:23 +02:00
Developer 02
6be3d5373a Update API routing and port configuration
- Changed `DownstreamPathTemplate` from `/api/Auth/check` to `/api/Auth/sign-flow-gen/login`.
- Updated `DownstreamHostAndPorts` port from `7174` to `7192`.
- Modified `UpstreamPathTemplate` from `/api/Auth/check` to `/api/Auth/form`.
2025-05-05 10:16:27 +02:00
Developer 02
d34ba75deb refactor(ocelot.json): DownstreamPathTemplate des Authentifizierungsdienstes konfiguriert, um sign-flow-gen als Verbraucher hinzuzufügen und den Parameter cookie-query optional zu machen.
- Ent-Punkt hinzufügen, um den Standard-Cookie-Parameter falsch zu machen.
2025-04-29 11:17:10 +02:00
Developer 02
dccaaf2feb chore(IISProfile): DesktopBuildPackageLocation-Pfad aktualisieren 2025-04-08 15:39:29 +02:00
Developer 02
1957626ef2 Bump version to 1.1.0 in project file
Updated the `DigitalData.Gateway.csproj` to reflect the new versioning information, changing `Version`, `AssemblyVersion`, and `FileVersion` from `1.0.0` to `1.1.0`. This release may include new features or fixes.
2025-04-08 15:34:24 +02:00
Developer 02
7069938d34 merge 2025-04-08 15:31:49 +02:00
Developer 02
84a25752b5 Merge branch 'master' into feat/envelope-generator.gen.api 2025-04-08 11:07:33 +02:00
Developer 02
693a835191 Update routing and configuration for EnvelopeGeneratorGenApi
- Changed `DesktopBuildPackageLocation` in `IISProfile.pubxml` to point to the new `EnvelopeGeneratorGenApi` project directory.
- Updated routing in `ocelot.Development.json` and `ocelot.json`:
  - Changed `DownstreamScheme` from `https` to `http` for multiple routes.
  - Updated `Port` for `DownstreamHostAndPorts` from `7120` and `7192` to `8088`.
  - Expanded `UpstreamHttpMethod` to include `Post`, `Put`, and `Delete`.
  - Added new routes for `/scalar`, `/scalar/{route}`, and `/scalar/{route1}/{route2}`.
- Modified `GlobalConfiguration` `BaseUrl` from `https://localhost:7052` to `http://localhost:8443`.
2025-04-08 10:44:46 +02:00
7 changed files with 225 additions and 232 deletions

13
.config/dotnet-tools.json Normal file
View File

@@ -0,0 +1,13 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "9.0.3",
"commands": [
"dotnet-ef"
],
"rollForward": false
}
}
}

View File

@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<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>
@@ -14,7 +14,6 @@
<PackageReference Include="NLog.Extensions.Logging" Version="5.4.0" />
<PackageReference Include="NLog.Web.AspNetCore" Version="5.4.0" />
<PackageReference Include="Ocelot" Version="23.4.3" />
<PackageReference Include="Ocelot.Cache.CacheManager" Version="23.4.3" />
</ItemGroup>
</Project>

View File

@@ -2,7 +2,6 @@ using NLog;
using NLog.Web;
using Ocelot.DependencyInjection;
using Ocelot.Middleware;
using Ocelot.Cache.CacheManager;
var logger = LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();
logger.Info("Logging initialized.");
@@ -10,7 +9,7 @@ logger.Info("Logging initialized.");
try
{
var builder = WebApplication.CreateBuilder(args);
builder.Logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
if (!builder.Environment.IsDevelopment())
@@ -24,9 +23,7 @@ try
builder.Configuration.AddJsonFile($"ocelot{suffix}.json");
// Add Ocelot services
builder.Services
.AddOcelot()
.AddCacheManager(x => x.WithDictionaryHandle());
builder.Services.AddOcelot();
var app = builder.Build();

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<WebPublishMethod>Package</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
<ExcludeApp_Data>false</ExcludeApp_Data>
<ProjectGuid>329f45bf-4c79-4a7b-9086-d6205617aa42</ProjectGuid>
<DesktopBuildPackageLocation>P:\Install .Net\0 DD - Smart UP\Gateway\EnvelopeGeneratorGen\Net9Win64\$(Version)\$(Version).zip</DesktopBuildPackageLocation>
<PackageAsSingleFile>true</PackageAsSingleFile>
<DeployIisAppPath>Gateway</DeployIisAppPath>
<_TargetId>IISWebDeployPackage</_TargetId>
<TargetFramework>net9.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>

View File

@@ -9,8 +9,8 @@
"NLog": {
"throwConfigExceptions": true,
"variables": {
"logDirectory": "E:\\LogFiles\\Digital Data\\UserManager.Gateway",
"logFileNamePrefix": "${shortdate}-UserManager.Gateway"
"logDirectory": "E:\\LogFiles\\Digital Data\\workFlow.Gateway",
"logFileNamePrefix": "${shortdate}-workFlow.Gateway"
},
"targets": {
"infoLogs": {

View File

@@ -6,63 +6,120 @@
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
"Port": 8088
}
],
"UpstreamPathTemplate": "/swagger/{route}",
"UpstreamhttpsMethod": [
"Get"
"UpstreamHttpMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/swagger/auth/{route}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "172.24.12.39",
"Port": 9090
}
],
"UpstreamPathTemplate": "/swagger/auth/{route}",
"UpstreamhttpsMethod": [
"Get"
]
},
{
"DownstreamPathTemplate": "/api/Auth/user-manager?cookie=true",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "172.24.12.39",
"Port": 9090
}
],
"UpstreamPathTemplate": "/api/Auth/login",
"UpstreamhttpsMethod": [ "Post" ]
},
{
"DownstreamPathTemplate": "/api/Auth/check",
"DownstreamPathTemplate": "/swagger/{route1}/{route2}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
"Port": 8088
}
],
"UpstreamPathTemplate": "/api/Auth/check",
"UpstreamhttpsMethod": [ "Get" ]
"UpstreamPathTemplate": "/swagger/{route1}/{route2}",
"UpstreamHttpMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/api/Auth/logout",
"DownstreamPathTemplate": "/scalar",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
"Port": 8088
}
],
"UpstreamPathTemplate": "/api/Auth/logout",
"UpstreamhttpsMethod": [ "Post" ]
"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",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"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/sign-flow-gen/login",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7192
}
],
"UpstreamPathTemplate": "/api/Auth/form",
"UpstreamHttpMethod": [ "Post" ]
},
{
"DownstreamPathTemplate": "/api/{route}",
@@ -70,11 +127,11 @@
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
"Port": 8088
}
],
"UpstreamPathTemplate": "/api/{route}",
"UpstreamhttpsMethod": [
"UpstreamHttpMethod": [
"Get",
"Post",
"Put",
@@ -82,87 +139,17 @@
]
},
{
"DownstreamPathTemplate": "/api/{route1}/{route2}",
"DownstreamPathTemplate": "/api/{route}/{id}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
"Port": 8088
}
],
"UpstreamPathTemplate": "/api/{route1}/{route2}",
"UpstreamhttpsMethod": [
"UpstreamPathTemplate": "/api/{route}{id}",
"UpstreamHttpMethod": [
"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",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 4200
}
],
"UpstreamPathTemplate": "/",
"UpstreamhttpsMethod": [
"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"
]
}

View File

@@ -2,79 +2,124 @@
"Routes": [
{
"DownstreamPathTemplate": "/swagger/{route}",
"DownstreamScheme": "https",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
"Port": 8088
}
],
"UpstreamPathTemplate": "/swagger/{route}",
"UpstreamhttpsMethod": [
"Get"
"UpstreamHttpMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/swagger/auth/{route}",
"DownstreamScheme": "https",
"DownstreamPathTemplate": "/swagger/{route1}/{route2}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7192
"Port": 8088
}
],
"UpstreamPathTemplate": "/swagger/auth/{route}",
"UpstreamhttpsMethod": [
"Get"
"UpstreamPathTemplate": "/swagger/{route1}/{route2}",
"UpstreamHttpMethod": [
"Get",
"Post",
"Put",
"Delete"
]
},
{
"DownstreamPathTemplate": "/api/Auth/user-manager?cookie=true",
"DownstreamScheme": "https",
"DownstreamPathTemplate": "/scalar",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7192
"Port": 8088
}
],
"UpstreamPathTemplate": "/api/Auth/login",
"UpstreamhttpsMethod": [ "Post" ]
"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"
]
},
{
"DownstreamPathTemplate": "/api/Auth/work-flow?cookie=false",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 8088
}
],
"UpstreamPathTemplate": "/api/Auth",
"UpstreamHttpMethod": [ "Post" ]
},
{
"DownstreamPathTemplate": "/api/Auth/check",
"DownstreamScheme": "https",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
"Port": 8088
}
],
"UpstreamPathTemplate": "/api/Auth/check",
"UpstreamhttpsMethod": [ "Get" ]
},
{
"DownstreamPathTemplate": "/api/Auth/logout",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
}
],
"UpstreamPathTemplate": "/api/Auth/logout",
"UpstreamhttpsMethod": [ "Post" ]
"UpstreamHttpMethod": [ "Post" ]
},
{
"DownstreamPathTemplate": "/api/{route}",
"DownstreamScheme": "https",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7103
"Port": 8088
}
],
"UpstreamPathTemplate": "/api/{route}",
"UpstreamhttpsMethod": [
"UpstreamHttpMethod": [
"Get",
"Post",
"Put",
@@ -82,87 +127,17 @@
]
},
{
"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": "/",
"DownstreamPathTemplate": "/api/{route}/{id}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 4200
"Port": 8088
}
],
"UpstreamPathTemplate": "/",
"UpstreamhttpsMethod": [
"UpstreamPathTemplate": "/api/{route}{id}",
"UpstreamHttpMethod": [
"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"
]
}