When zanata is deployed behind a proxy. e.g. nginx redirect https traffic to EAP port 8080. The code has several places that injects
and get request URI. The result will be http protocol. Potentially the context path may also be the EAP context path not the one received at the proxy. This will result in incorrect URL being returned to the REST response.