Traditional reverse proxies are not sufficient for routing traffic based on unique hostnames that serve all customers.
Caddy offers a simple solution that uses Redis, Ruby and OpenSSL for generating a JWT, and Caddy as a reverse proxy layer. Caddy allows dynamic selection of upstream servers in less than 80 lines of code.
Other potential alternatives include OpenResty, HAProxy, Kong, Apache APISIX, and Envoy Proxy.