Skip to content

Commit

Permalink
Merge pull request #19 from Financial-Times/feature/UPPSF-3462
Browse files Browse the repository at this point in the history
Add routing for locations-smartlogic-notifier service
  • Loading branch information
asparuhft authored Aug 25, 2022
2 parents 8f073ae + 47fd1a5 commit d5a153a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ sub vcl_recv {
elif (req.url ~ "^\/smartlogic.*$") {
set req.url = regsub(req.url, "smartlogic", "notify");
set req.backend_hint = dynBackend.backend("smartlogic-notifier");
}
}
elif (req.url ~ "^\/locations-smartlogic.*$") {
set req.url = regsub(req.url, "locations-smartlogic", "notify");
set req.backend_hint = dynBackend.backend("locations-smartlogic-notifier");
}
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 d5a153a

Please sign in to comment.