Hello,
One of the common issue using GCP is loadbalancer HTTP to HTTPS forward.
Still a feature request but not resolved yet.
The best solution I found is the following.
Using Nginx server, HTTP connection are forward to HTTPS in server:443 part.
server {
listen 443 ssl default_server;
listen [::]:443 ssl;
if ($http_x_forwarded_proto = "http") {
return 301 https://$host$request_uri;
}
(rest of your configuration : ssl, ...)
}
This way your site is always HTTPS.
Aucun commentaire:
Enregistrer un commentaire