node.js - How to route all traffic to a single port on google compute engine -
i'm hosting node app on google compute engine. app set listen port 8080. opened firewall allow tcp connections port 8080. can connect app entering
http://<your-instance-ip>:8080
in google chrome browser, your-instance-ip external ip of compute engine instance. bought domain. i want make when enter domain, redirects specific port. can add external ip in a-record of godaddy domain. how route traffic ip, specific port 8080? used nodejs express. want using nginx, point out tutorials?
click on 'default' network , edit "default-allow-http", make sure existing "allowed protocols , ports" "tcp:80" , target-tag "http-server" add "nodejs" in target-tag. save changes. restart google console. godaddy listen port 80
Comments
Post a Comment