Set the port as well as protocol for the forwarded proxy port

Fix for oauth taken from http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header
proxy_set_header Host       $host:$proxy_port;