Nginx proxy_pass config

On line 61 or your debug log you see that the request is actually being made to the remote server as GET /user/[email protected]/aoeu HTTP/1.0, you are missing the /api/. Try setting the proxy_pass directive like this:

proxy_pass http://api_alias/api/;