Our team has developed an analytic app which records and analyses all incoming (not dropped) requests. To that extent, I have to send a copy of all requests to another upstream in my reverse-proxy solution.
Is it possible with NGINX alone? Or is there any other solution with minimum impact on the current reverse-proxy structure?
It is preferable to do so within NGINX so that processes on requests by NGINX is already done and the request will be the same as it is sent to destination upstream.
PS: The analytic app does not return any response
Best Answer
After some searhing in nginx docs I found a directory mirror in nginx.org. Think, this is what u need.
We are using kubernetes with nginx as ingress, so our config is
We've done this as ASAP but it works like a charm.