Add receiver-ui route and cluster to YARP configuration
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.
This commit is contained in:
@@ -1,6 +1,14 @@
|
|||||||
{
|
{
|
||||||
"ReverseProxy": {
|
"ReverseProxy": {
|
||||||
"Routes": {
|
"Routes": {
|
||||||
|
"receiver-ui": {
|
||||||
|
"ClusterId": "receiver-ui",
|
||||||
|
"Order": 100,
|
||||||
|
"Match": {
|
||||||
|
"Path": "{**catch-all}",
|
||||||
|
"Methods": [ "GET", "HEAD" ]
|
||||||
|
}
|
||||||
|
},
|
||||||
"auth-login": {
|
"auth-login": {
|
||||||
"ClusterId": "auth-hub",
|
"ClusterId": "auth-hub",
|
||||||
"Match": {
|
"Match": {
|
||||||
@@ -24,6 +32,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Clusters": {
|
"Clusters": {
|
||||||
|
"receiver-ui": {
|
||||||
|
"Destinations": {
|
||||||
|
"primary": {
|
||||||
|
"Address": "https://localhost:52936"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"auth-hub": {
|
"auth-hub": {
|
||||||
"Destinations": {
|
"Destinations": {
|
||||||
"primary": {
|
"primary": {
|
||||||
|
|||||||
Reference in New Issue
Block a user