-
I want to Reverse Proxy multiple ports, with YARP.
All the examples seem to map URLs, and not ports. public class ProxyConfigProvider : IProxyConfigProvider
{
var routeConfig = new RouteConfig
{
RouteId = "route1",
ClusterId = "cluster1",
Match = new RouteMatch
{
Path = "/api/service1/{**catch-all}"
}
};
var clusterConfig = new ClusterConfig
{
Destinations = new [] = {"Address": "https://RemoteHost.com:7001"}
.... How do you set up Kestrel and YARP to do what I want? |
Beta Was this translation helpful? Give feedback.
Answered by
Tratcher
May 13, 2022
Replies: 1 comment 2 replies
-
You can route by port using the Hosts field "Match": {
"Hosts" : [ "*:5001" ] |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
karelz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can route by port using the Hosts field