I would like to have an api like this:
my-proxy-server.com/http://example.com/foo.pdf
that streams a response from http://example.com/foo.pdf. Note in this case http://example.com/foo.pdf is just an example, this could be any pdf url.
So in nginx.conf sudo code:
location ~* ^/(?<urlpath>.*)$ {
proxy_pass $urlpath;
}
Is this possible with nginx + some other plugin? Looking for some pointers on implementing this.