SimpleReverseProxy 0.0.3
dotnet add package SimpleReverseProxy --version 0.0.3
NuGet\Install-Package SimpleReverseProxy -Version 0.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimpleReverseProxy" Version="0.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleReverseProxy" Version="0.0.3" />
<PackageReference Include="SimpleReverseProxy" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SimpleReverseProxy --version 0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimpleReverseProxy, 0.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=SimpleReverseProxy&version=0.0.3
#tool nuget:?package=SimpleReverseProxy&version=0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Simple Reverse Proxy
A lightweight reverse proxy middleware for ASP.NET Core applications that allows forwarding requests to different destinations based on route configurations.
Installation
Install via NuGet Package Manager:
dotnet add package SimpleReverseProxy
Usage
- Add the reverse proxy services in your
Program.cs
orStartup.cs
:
services.AddReverseProxy(Configuration.GetSection("ReverseProxy"));
- Add the middleware to your application pipeline:
app.UseSimpleReverseProxy();
- Configure the reverse proxy in your
appsettings.json
:
{
"ReverseProxy": {
"Sources": [
{
"DestinationId": "api1",
"Routes": [ "users", "products" ]
},
{
"DestinationId": "api2",
"Routes": [ "orders", "payments" ]
}
],
"Destinations": [
{
"DestinationId": "api1",
"Url": "https://api1.example.com"
},
{
"DestinationId": "api2",
"Url": "https://api2.example.com"
}
]
}
}
With this configuration:
- Requests to
/users
and/products
will be forwarded tohttps://api1.example.com
- Requests to
/orders
and/payments
will be forwarded tohttps://api2.example.com
License
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.