Files
EnvelopeGenerator/EnvelopeGenerator.API/yarp.json
TekH 6d254281f8 Update ReverseProxy config and adjust destination address
Added a new `ReverseProxy` section in `appsettings.Development.json` to define the `receiver-ui` cluster with a destination pointing to `https://localhost:52936`. Reformatted the `Logging` configuration without changing its values.

Updated the `yarp.json` file to modify the `receiver-ui` cluster's destination address from `https://localhost:52936` to `http://172.24.12.39:1234` to reflect the new backend service location.
2026-06-01 10:43:04 +02:00

101 lines
2.6 KiB
JSON

{
"ReverseProxy": {
"Routes": {
"receiver-ui-receiver": {
"ClusterId": "receiver-ui",
"Order": 100,
"Match": {
"Path": "/receiver/{**catch-all}",
"Methods": [ "GET", "HEAD" ]
}
},
"receiver-ui-login": {
"ClusterId": "receiver-ui",
"Order": 100,
"Match": {
"Path": "/login/{**catch-all}",
"Methods": [ "GET", "HEAD" ]
}
},
"receiver-ui-sender": {
"ClusterId": "receiver-ui",
"Order": 100,
"Match": {
"Path": "/sender/{**catch-all}",
"Methods": [ "GET", "HEAD" ]
}
},
"receiver-ui-envelope": {
"ClusterId": "receiver-ui",
"Order": 100,
"Match": {
"Path": "/envelope/{**catch-all}",
"Methods": [ "GET", "HEAD" ]
}
},
"receiver-ui-static-assets": {
"ClusterId": "receiver-ui",
"Order": 999,
"Match": {
"Path": "{**catch-all}",
"Methods": [ "GET", "HEAD" ]
},
"Transforms": [
{ "ResponseHeader": "Cache-Control", "Set": "no-cache, no-store, must-revalidate", "When": "Always" },
{ "ResponseHeader": "Pragma", "Set": "no-cache", "When": "Always" },
{ "ResponseHeader": "Expires", "Set": "0", "When": "Always" }
]
},
"receiver-ui-annotation-fake": {
"ClusterId": "receiver-ui",
"Order": 10,
"Match": {
"Path": "/api/Annotation/{envelopeKey}",
"Methods": [ "GET", "HEAD" ]
},
"Transforms": [
{ "PathSet": "/fake-data/annotations.json" }
]
},
"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": "http://172.24.12.39:1234"
}
}
},
"auth-hub": {
"Destinations": {
"primary": {
"Address": "http://172.24.12.39:9090"
}
}
}
}
}
}