Is it possible to also forward parameters?
So far this works for me, I modified your example like this:
location = / {
return 301 http://52.55.142.120:10080/api/download;
}
So externally I use a subdomain call, like https://mysub.domain.tlg which by this directive successfully routes to...