retrieving http protocol from x-forwarded-proto header, as req.protocol would always be http when we are using the reverse proxy
Merge pull request #11 from flyvictor/WEB-2074-secure-api

retrieving http protocol from x-forwarded-proto header, as req.protocol ...