Update version to 1.3.1 and simplify YARP proxy logic
Updated the project version in `EnvelopeGenerator.API.csproj` from `1.3.0` to `1.3.1`, including `<Version>`, `<FileVersion>`, and `<AssemblyVersion>` properties, indicating a minor update. Simplified the YARP proxy mapping in `Program.cs` by replacing the conditional `app.MapWhen` logic with a direct call to `app.MapReverseProxy()`, allowing all requests to be forwarded through the reverse proxy without path filtering.
This commit is contained in:
@@ -10,9 +10,9 @@
|
|||||||
<Authors>Digital Data GmbH</Authors>
|
<Authors>Digital Data GmbH</Authors>
|
||||||
<Company>Digital Data GmbH</Company>
|
<Company>Digital Data GmbH</Company>
|
||||||
<Product>EnvelopeGenerator.GeneratorAPI</Product>
|
<Product>EnvelopeGenerator.GeneratorAPI</Product>
|
||||||
<Version>1.3.0</Version>
|
<Version>1.3.1</Version>
|
||||||
<FileVersion>1.3.0</FileVersion>
|
<FileVersion>1.3.1</FileVersion>
|
||||||
<AssemblyVersion>1.3.0</AssemblyVersion>
|
<AssemblyVersion>1.3.1</AssemblyVersion>
|
||||||
<PackageOutputPath>Copyright © 2025 Digital Data GmbH. All rights reserved.</PackageOutputPath>
|
<PackageOutputPath>Copyright © 2025 Digital Data GmbH. All rights reserved.</PackageOutputPath>
|
||||||
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|||||||
@@ -329,15 +329,7 @@ try
|
|||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
// Catch-all YARP proxy — only forward requests that are not swagger/scalar/openapi paths.
|
// Catch-all YARP proxy — only forward requests that are not swagger/scalar/openapi paths.
|
||||||
app.MapWhen(
|
app.MapReverseProxy();
|
||||||
ctx =>
|
|
||||||
{
|
|
||||||
var path = ctx.Request.Path.Value ?? string.Empty;
|
|
||||||
return !path.StartsWith("/swagger", StringComparison.OrdinalIgnoreCase) &&
|
|
||||||
!path.StartsWith("/scalar", StringComparison.OrdinalIgnoreCase) &&
|
|
||||||
!path.StartsWith("/openapi", StringComparison.OrdinalIgnoreCase);
|
|
||||||
},
|
|
||||||
branch => branch.UseRouting().UseEndpoints(e => e.MapReverseProxy()));
|
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user