Refactor YARP routes and update configurations

Renamed the `receiver-ui-receiver` route to `receiver-ui-root` and updated its `Order` value from `100` to `300`. Changed the `Match` path for `receiver-ui-root` from `/receiver/{**catch-all}` to `/`. Removed the `receiver-ui-login` route entirely.

Added a `Transforms` section to the `receiver-ui-root` and `receiver-ui-sender` routes, setting the path to `/index.html`.
This commit is contained in:
2026-06-11 11:38:19 +02:00
parent 9dc2b9adef
commit 9eee2b523d

View File

@@ -1,21 +1,16 @@
{ {
"ReverseProxy": { "ReverseProxy": {
"Routes": { "Routes": {
"receiver-ui-receiver": { "receiver-ui-root": {
"ClusterId": "receiver-ui", "ClusterId": "receiver-ui",
"Order": 100, "Order": 300,
"Match": { "Match": {
"Path": "/receiver/{**catch-all}", "Path": "/",
"Methods": [ "GET", "HEAD" ] "Methods": [ "GET", "HEAD" ]
}
}, },
"receiver-ui-login": { "Transforms": [
"ClusterId": "receiver-ui", { "PathSet": "/index.html" }
"Order": 100, ]
"Match": {
"Path": "/login/{**catch-all}",
"Methods": [ "GET", "HEAD" ]
}
}, },
"receiver-ui-sender": { "receiver-ui-sender": {
"ClusterId": "receiver-ui", "ClusterId": "receiver-ui",
@@ -23,7 +18,10 @@
"Match": { "Match": {
"Path": "/sender/{**catch-all}", "Path": "/sender/{**catch-all}",
"Methods": [ "GET", "HEAD" ] "Methods": [ "GET", "HEAD" ]
} },
"Transforms": [
{ "PathSet": "/index.html" }
]
}, },
"receiver-ui-envelope": { "receiver-ui-envelope": {
"ClusterId": "receiver-ui", "ClusterId": "receiver-ui",