title: How to make a Flask API on GCP run on https instead of http
body: <p>I have a flask API which is running on a google VM instance but currently it is running on http. So for instance, <a href="http://36.137.283.44:5000/get_values" rel="nofollow noreferrer">http://36.137.283.44:5000/get_values</a> is the url for one endpoint where 36.137.283.44 is the external IP of the VM instance and 5000 is the port. I just want to the http to become https.</p>
  <p>I've seen some answers which use load balancers and others which add ssl related code in the app.py file itself but neither seem to work.</p>