I'm on google cloud compute engine with a go webserver (no apache or nginx). I want to forward all http requests to https. My go code has ListenAndServe on port 8080 and the binary runs on port 3000 as https. This was accomplished using below.
gcloud compute forwarding-rules create pgurus --global --address xxx.xxx.xxx.xxxx --ip-protocol TCP --ports=3000 --target-http-proxy TARGET_HTTP_PROXY
Thanks in advance!