Skip to content

Commit

Permalink
Merge pull request #23 from Financial-Times/feature/UPPSF-4886
Browse files Browse the repository at this point in the history
Route /draft-annotaions to draft-annotations-api and publisher
  • Loading branch information
asparuhft authored Apr 2, 2024
2 parents 75ffa1a + 495abc2 commit 13f2e1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ sub vcl_recv {
elif (req.url ~ "^\/concept/.*$") {
set req.backend_hint = dynBackend.backend("cm-generic-concept-transformer");
}
elif (req.url ~ "^\/draft-annotations\/content\/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\/annotations\/publish.*$") {
set req.backend_hint = dynBackend.backend("annotations-publisher");
}
elif (req.url ~ "^\/draft-annotations\/content.*$") {
set req.backend_hint = dynBackend.backend("draft-annotations-api");
}
elif (req.url ~ "^\/__[\w-]*\/.*$") {
# create a new backend dynamically to match the requested URL that will be looked up in the Kubernetes DNS.
# For example calling the URL /__content-ingester/xyz will forward the request to the service content-ingester with the url /xyz
Expand Down

0 comments on commit 13f2e1b

Please sign in to comment.