Set the port as well as protocol

See http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header
proxy_set_header Host       $host:$proxy_port;