Expanded `yarp.json` with new routes for the `receiver-ui` cluster to handle paths for `appsettings.json`, `appsettings.Development.json`, styles, fonts, and images. These routes specify HTTP methods and execution order. Registered `SignatureService` as a scoped dependency in `Program.cs` to support new functionality related to handling signatures.
177 lines
4.0 KiB
JSON
177 lines
4.0 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/{EnvelopeKey}",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
},
|
|
"Transforms": [
|
|
{ "PathSet": "/index.html" }
|
|
]
|
|
},
|
|
"receiver-ui-blazor-framework": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 50,
|
|
"Match": {
|
|
"Path": "/_framework/{**catch-all}",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
}
|
|
},
|
|
"receiver-ui-blazor-content": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 50,
|
|
"Match": {
|
|
"Path": "/_content/{**catch-all}",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
}
|
|
},
|
|
"receiver-ui-static-css": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 200,
|
|
"Match": {
|
|
"Path": "/css/{**catch-all}",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
},
|
|
"Transforms": [
|
|
{
|
|
"ResponseHeader": "Cache-Control",
|
|
"Set": "no-cache, no-store, must-revalidate",
|
|
"When": "Always"
|
|
}
|
|
]
|
|
},
|
|
"receiver-ui-static-js": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 200,
|
|
"Match": {
|
|
"Path": "/js/{**catch-all}",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
},
|
|
"Transforms": [
|
|
{
|
|
"ResponseHeader": "Cache-Control",
|
|
"Set": "no-cache, no-store, must-revalidate",
|
|
"When": "Always"
|
|
}
|
|
]
|
|
},
|
|
"receiver-ui-fake-data": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 200,
|
|
"Match": {
|
|
"Path": "/fake-data/{**catch-all}",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
}
|
|
},
|
|
"receiver-ui-appsettings": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 50,
|
|
"Match": {
|
|
"Path": "/appsettings.json",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
}
|
|
},
|
|
"receiver-ui-appsettings-dev": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 50,
|
|
"Match": {
|
|
"Path": "/appsettings.Development.json",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
}
|
|
},
|
|
"receiver-ui-styles": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 50,
|
|
"Match": {
|
|
"Path": "/EnvelopeGenerator.ReceiverUI.styles.css",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
}
|
|
},
|
|
"receiver-ui-fonts": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 200,
|
|
"Match": {
|
|
"Path": "/fonts/{**catch-all}",
|
|
"Methods": [ "GET", "HEAD" ]
|
|
}
|
|
},
|
|
"receiver-ui-images": {
|
|
"ClusterId": "receiver-ui",
|
|
"Order": 200,
|
|
"Match": {
|
|
"Path": "/images/{**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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|