I have Nginx/openresty and some other services running on one VM. Basically VM accepts requests on Openresty and then openresty forwards requests to appropriate service. e.g. below requests getting forwarded to ServiceA, ServiceB and ServiceC respectively. It is working fine.
Now I need to expose a new endpoint which could get the responses from all services A, B and C. and then return one consolidated response.
I cannot use multiple proxy_pass in my location, could someone suggest how can I achieve that? e.g.
http://server:80/services/refALL --> returns a consolidated response from A, B and C Services.