I’m investigating the ways to move our existing reverse proxy setting onto Cloudflare. Currently, we have to 2 servers behind the proxy, the App (Heroku based) and the Shop (BigCommerce). The reverse proxy with simple nginx setup dispatches (via proxy_pass) requests between the App and the Shop based on request URI. Each app has own hostname, e.g. myapp.herokuapp.com for the App, and storeXXX-mybigcommerce.com for the Shop.
And nginx config looks like
Is it possible to implement such setup using Workers? I specifically would like to know if there is a limitation of fetching requests to hosts not matched with the account domain?
Appreciate any help!