7 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
6ade388cd7 Enhance logging configuration in Program.cs
Initialized logging by clearing providers, setting minimum
level to Trace, and configuring NLog as the logging provider.
2025-05-09 23:20:27 +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
3 changed files with 37 additions and 17 deletions

View File

@@ -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.1.0</Version> <Version>1.2.0</Version>
<AssemblyVersion>1.1.0</AssemblyVersion> <AssemblyVersion>1.2.0</AssemblyVersion>
<FileVersion>1.1.0</FileVersion> <FileVersion>1.2.0</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -10,6 +10,14 @@ 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");

View File

@@ -2,7 +2,7 @@
"Routes": [ "Routes": [
{ {
"DownstreamPathTemplate": "/swagger/{route}", "DownstreamPathTemplate": "/swagger/{route}",
"DownstreamScheme": "http", "DownstreamScheme": "https",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "localhost", "Host": "localhost",
@@ -19,7 +19,7 @@
}, },
{ {
"DownstreamPathTemplate": "/swagger/{route1}/{route2}", "DownstreamPathTemplate": "/swagger/{route1}/{route2}",
"DownstreamScheme": "http", "DownstreamScheme": "https",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "localhost", "Host": "localhost",
@@ -36,7 +36,7 @@
}, },
{ {
"DownstreamPathTemplate": "/scalar", "DownstreamPathTemplate": "/scalar",
"DownstreamScheme": "http", "DownstreamScheme": "https",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "localhost", "Host": "localhost",
@@ -53,7 +53,7 @@
}, },
{ {
"DownstreamPathTemplate": "/scalar/{route}", "DownstreamPathTemplate": "/scalar/{route}",
"DownstreamScheme": "http", "DownstreamScheme": "https",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "localhost", "Host": "localhost",
@@ -70,7 +70,7 @@
}, },
{ {
"DownstreamPathTemplate": "/scalar/{route1}/{route2}", "DownstreamPathTemplate": "/scalar/{route1}/{route2}",
"DownstreamScheme": "http", "DownstreamScheme": "https",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "localhost", "Host": "localhost",
@@ -86,32 +86,44 @@
] ]
}, },
{ {
"DownstreamPathTemplate": "/api/Auth/work-flow?cookie=false", "DownstreamPathTemplate": "/api/Auth/sign-flow-gen?cookie={cookie}",
"DownstreamScheme": "http", "DownstreamScheme": "https",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "localhost", "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", "UpstreamPathTemplate": "/api/Auth",
"UpstreamHttpMethod": [ "Post" ] "UpstreamHttpMethod": [ "Post" ]
}, },
{ {
"DownstreamPathTemplate": "/api/Auth/check", "DownstreamPathTemplate": "/api/Auth/sign-flow-gen/login",
"DownstreamScheme": "http", "DownstreamScheme": "https",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "localhost", "Host": "localhost",
"Port": 8088 "Port": 7192
} }
], ],
"UpstreamPathTemplate": "/api/Auth/check", "UpstreamPathTemplate": "/api/Auth/form",
"UpstreamHttpMethod": [ "Post" ] "UpstreamHttpMethod": [ "Post" ]
}, },
{ {
"DownstreamPathTemplate": "/api/{route}", "DownstreamPathTemplate": "/api/{route}",
"DownstreamScheme": "http", "DownstreamScheme": "https",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "localhost", "Host": "localhost",
@@ -128,7 +140,7 @@
}, },
{ {
"DownstreamPathTemplate": "/api/{route}/{id}", "DownstreamPathTemplate": "/api/{route}/{id}",
"DownstreamScheme": "http", "DownstreamScheme": "https",
"DownstreamHostAndPorts": [ "DownstreamHostAndPorts": [
{ {
"Host": "localhost", "Host": "localhost",