Proxy_pass esque directive to all endpoints in upstream block
|Reported by:||Ned Rockson||Owned by:|
There should exist a proxy_pass like directive to route to all endpoints defined in an upstream block. This allows for a configuration to define a specific endpoint (or multiple) that need to touch all reverse proxied endpoints (e.g. to force some state clearing) without having to write very specific application code.
I'd imagine the new command might be
proxy_pass_all <upstream server block name> <serial/parallel>
which would proxy to all groups in the upstream server block either serially or in parallel. As I am not very well versed in nginx I am not sure what should happen if a server is down in the block, returns a non-200, etc. This is likely why this hasn't been implemented.