@Jordan. That completely defeats the purpose of running the JAM stack!  
https://jamstack.org/

The main idea is to write your application in client-side technologies, use 
service APIs instead of writing your own server code and host it on a 
global CDN network. Google is in a very good position for this but not 
having the ability to forward HTTP to HTTPS (or other redirects) is a foot 
gun!

I guess it's only Microsoft Azure and AWS that are in the game for the 
moment. Too bad google.. oh wait.. I just saw firebase 
https://firebase.google.com/docs/hosting/...
Damn, an entire day of work lost to useless Google documentation. Great way 
to onboard a new developer to your cloud solution!

https://cloud.google.com/storage/docs/hosting-static-website

On Tuesday, October 17, 2017 at 8:49:11 PM UTC+2, Jordan (Cloud Platform 
Support) wrote:
>
> Redirects should occur on your backend configuration. Your Google Cloud 
> Load Balancer will provide you with a 'X-Forwarded-Proto 
> <https://cloud.google.com/compute/docs/load-balancing/http/#components>' 
> header equal to a value of 'http' or 'https'. You would then configure you 
> backend's '*.htacces*' file to redirect to HTTPS if the header is equal 
> to 'http' like so:
>
> RewriteEngine On
> RewriteCond %{HTTP:X-Forwarded-Proto} =http
> RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
>
> - Note that if you are just hosting your site on Google Cloud Storage than 
> you will not have a '.htaccess' file, since Cloud Storage is only able to 
> server static websites and not dynamic (aka it cannot execute any code). It 
> is instead recommended to deploy an actual backend webserver to serve your 
> website, such as a LAMP server on Compute Engine 
> <https://cloud.google.com/community/tutorials/setting-up-lamp>. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6b55f504-f89e-4888-b5f7-f8407f43b8af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to