title: App Engine redirect from HTTP to HTTPS on custom environment
body: <p>We are having separate App Engine service that sharing static content through nginx server. Such scheme required to enabled react routing, so we are returning index.html on business logic routes.
  Nginx lays inside docker container and listens port 8080, that was required and used in App Engine <a href="https://github.com/GoogleCloudPlatform/appengine-custom-runtimes-samples/blob/master/nginx/nginx.conf" rel="nofollow noreferrer">example app</a>.</p>
  
  <p>I've checked out the instance on which container is running and actually two ports are in use with my container: 80 and 8080.</p>
  
  <p>All requests going to static content by default.
  I believe that it is all about nginx configuration, so, here is the questions.</p>
  
  <ol>
  <li>Are they actually used like 80 -> 80 and 8080 -> 443? In this case I would just create separate standard server which listens port 80 and redirects to https version.</li>
  <li>If port 80 actually not used, then does it mean that all traffic, both http and https coming through single 8080 port?</li>
  <li>Will solution through if statement and regexp matching http in url request work? How awful this would be as a solution?</li>
  </ol>