I have tinkered with integrating the ReverseProxy plug within a Phoenix app - using forward so that just a few selected endpoints would be proxied upstream.
However, I came across an issue where Plug's read_body/2 is being called earlier in the pipeline (inside Phoenix parsers), thus rendering the ReverseProxy call to read the body useless.
Any idea on a way to overcome this issue?
I have tinkered with integrating the ReverseProxy plug within a Phoenix app - using
forwardso that just a few selected endpoints would be proxied upstream.However, I came across an issue where Plug's
read_body/2is being called earlier in the pipeline (inside Phoenix parsers), thus rendering the ReverseProxy call to read the body useless.Any idea on a way to overcome this issue?