Properly set X-Forwarded-Proto/Port when not behind another proxy.

Because nginx is not deployed behind another proxy/load balancer
such as ELB in our setup, set the X-Forwarded-Proto to protocol
of current request and X-Forwarded-Port to the server port.