Added a new `receiver-ui` route under the `ReverseProxy:Routes` section in `yarp.json` to match all paths for `GET` and `HEAD` methods. The route is associated with the `receiver-ui` cluster and has an `Order` value of 100. Configured a new `receiver-ui` cluster under the `ReverseProxy:Clusters` section with a single destination pointing to `https://localhost:52936`. This enables reverse proxying for the `receiver-ui` service.
52 lines
1.1 KiB
JSON
52 lines
1.1 KiB
JSON
{
|
|
"ReverseProxy": {
|
|
"Routes": {
|
|
"receiver-ui": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 100,
|
|
"Match": {
|
|
"Path": "{**catch-all}",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
}
|
|
},
|
|
"auth-login": {
|
|
"ClusterId": "auth-hub",
|
|
"Match": {
|
|
"Path": "/api/auth",
|
|
"Methods": [ "POST" ]
|
|
},
|
|
"Transforms": [
|
|
{ "PathSet": "/api/auth/sign-flow" }
|
|
]
|
|
},
|
|
"auth-envelope-receiver-login": {
|
|
"ClusterId": "auth-hub",
|
|
"Match": {
|
|
"Path": "/api/Auth/envelope-receiver/{key}",
|
|
"Methods": [ "POST" ]
|
|
},
|
|
"Transforms": [
|
|
{ "PathPattern": "/api/auth/envelope-receiver/{key}" },
|
|
{ "QueryValueParameter": "cookie", "Set": "true" }
|
|
]
|
|
}
|
|
},
|
|
"Clusters": {
|
|
"receiver-ui": {
|
|
"Destinations": {
|
|
"primary": {
|
|
"Address": "https://localhost:52936"
|
|
}
|
|
}
|
|
},
|
|
"auth-hub": {
|
|
"Destinations": {
|
|
"primary": {
|
|
"Address": "http://172.24.12.39:9090"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|