8 Commits

Author SHA1 Message Date
d113d4fcdd refactor(oceleot): update auth endpoint to use 172.24.12.39 2025-07-28 11:25:52 +02:00
59963d7d4c Merge from master 2025-07-22 18:11:55 +02:00
5843e9efa8 feat(logging): enable NLog only in non-development environments 2025-07-22 18:08:52 +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
23e73aae19 IISProfile aktualisieren 2025-04-08 15:30:21 +02:00
Developer 02
23d73e0671 gitignore aktualisiert 2025-04-08 15:29:26 +02:00
Developer 02
72b1c58b72 chore: Aktualisierung der Ziel-Frameworks in der Projektdatei
Geänderte `DigitalData.Gateway.csproj` zur Unterstützung mehrerer
Ziel-Frameworks: `net7.0`, `net8.0` und `net9.0`. Diese
verbessert die Kompatibilität und Flexibilität des Projekts.
2025-04-08 10:53:23 +02:00
Developer 02
4173c3d96a Aktualisierung der Ocelot-Paketversion in der Projektdatei
Die Projektdatei `DigitalData.Gateway.csproj` wurde geändert, um das `Ocelot`-Paket von Version `22.0.1` auf `23.4.3` zu aktualisieren. Außerdem wurde eine kleine Formatierungsänderung am `<Project>`-Tag vorgenommen, der nun ein nicht sichtbares Zeichen am Anfang der Zeile enthält.
2025-04-08 10:50:49 +02:00
3 changed files with 14 additions and 25 deletions

View File

@@ -9,6 +9,14 @@ logger.Info("Logging initialized.");
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" : "";

View File

@@ -1,19 +0,0 @@
<?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\UserManager\$(Version)\$(Version).zip</DesktopBuildPackageLocation>
<PackageAsSingleFile>true</PackageAsSingleFile>
<DeployIisAppPath>Gateway</DeployIisAppPath>
<_TargetId>IISWebDeployPackage</_TargetId>
</PropertyGroup>
</Project>

View File

@@ -16,11 +16,11 @@
},
{
"DownstreamPathTemplate": "/swagger/auth/{route}",
"DownstreamScheme": "https",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7192
"Host": "172.24.12.39",
"Port": 9090
}
],
"UpstreamPathTemplate": "/swagger/auth/{route}",
@@ -30,11 +30,11 @@
},
{
"DownstreamPathTemplate": "/api/Auth/user-manager?cookie=true",
"DownstreamScheme": "https",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7192
"Host": "172.24.12.39",
"Port": 9090
}
],
"UpstreamPathTemplate": "/api/Auth/login",