title: How to configure Port Forwarding with Google Cloud Compute Engine for a Node.JS application
body: <p>I'm trying to configure a port forwarding (port 80 to port 8080) for a Node.js application hosted on Google Cloud Compute Engine (Ubuntu and Nginx).</p>
  
  <p>My ultimate goal is to have an url like "api.domain.com" showing exactly the same thing from "api.domain.com:8080" (:8080 is working actually).</p>
  
  <p>But because it's a virtual server on Google platform, I'm not sure what kind of configuration I can do. </p>
  
  <p>I tried these solutions without success (probably because it's a Google Cloud environment):</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/24861311/forwarding-port-80-to-8080-using-nginx">Forwarding port 80 to 8080 using NGINX</a></li>
  <li><a href="https://stackoverflow.com/questions/16573668/best-practices-when-running-node-js-with-port-80-ubuntu-linode">Best practices when running Node.js with port 80 (Ubuntu / Linode)</a></li>
  </ol>
  
  <p>So two questions here:</p>
  
  <p>1.Where I need to configure the port forwarding?</p>
  
  <ul>
  <li>Directly in my Ubuntu instance with Nginx or Linux config files?</li>
  <li>With gcloud command?</li>
  <li>In a secret place in the UI of console.cloud.google.com?</li>
  </ul>
  
  <p>2.What settings or configuration I need to save?</p>