Dynamic proxying configuration

Is it possible to proxy requests to different servers based on external input? For example route proxy requests for domain aaa.com to server 1 at time 1, but then route it to server 2 at a later time without having to rewrite and reload caddyfile? Something like using redis data to determine where to route the proxy requests for a domain?

What about the request determines where it gets routed?

This sounds like a custom load balancing policy.

Thanks again Matt for responding. Right now it would probably be a setting in a redis instance (but not fixated on that) as the domain is moved around between internal servers and multiple caddy instances sit in front being HA proxy for several thousand domains which can be moved around between internal servers

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.