-
Hi, I want to have simple reverse-proxy application that will accept request, append some header value, and forward original path and query to the destination host. Response body returned from destination host should be returned through proxy where all URLs with destination host name are replaced with reverse-proxy host name. This is current configuration which is doing what I want except replacing destination host name with reverse-proxy name in response body. "ReverseProxy": {
"Routes": {
"route1": {
"ClusterId": "cluster1",
"Match": {
"Path": "{**catch-all}"
},
"Transforms": [
{
"RequestHeader": "HeaderParam",
"Append": "SomeValue"
},
]
}
},
"Clusters": {
"cluster1": {
"Destinations": {
"destination1": {
"Address": "https://example.com/"
}
}
}
}
} Does anybody have a suggestion how can I achieve replacing destination hostname with reverse-proxy hostname in response body? Use case example:
{
"img": "https://example.com/image_example.png"
}
{
"img": "https://localhost:7173/image_example.png"
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
See #1371 |
Beta Was this translation helpful? Give feedback.
See #1371