Reputation: 4303
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 example app.
I've checked out the instance on which container is running and actually two ports are in use with my container: 80 and 8080.
All requests going to static content by default. I believe that it is all about nginx configuration, so, here is the questions.
Upvotes: 0
Views: 932
Reputation: 9721
Both HTTP and HTTPS traffic arrive in the App Engine Flexible runtime on port 8080. The X-Forwarded-Proto
HTTP header will contain either http
or https
, you should use this to determine which protocol the client is using.
You can even do it directly within the nginx configuration, as shown in this answer.
Upvotes: 4