I need to define a pattern for below path for yarp Path section in appsettings.json file:
"/Contact/Images/Image.ashx?h=28&id=69865t65-888t-w987-tg7l-j88yt6541uj&w=100&54464454"
my config for yarp in appsettings.json file is as below:
"ReverseProxy": {
"Routes": {
"route1": {
"ClusterId": "cluster1",
"Match": {
"Path": ""
}
}
},
"Clusters": {
"cluster1": {
"LoadBalancingPolicy": "RoundRobin",
"Destinations": {
"cluster1/destination1": {
"Address": "https://www.example.com"
}
}
}
}
}
What can I do? Any help will be appreciated.