Force_https not working with GCP Ingress

Thanks, is the backend showing up as healthy in the load balancer? Please also add www.yoursite.com to the host (under more).

Also, here is what I add to my app.yml:

  after_web_config:
    - replace:
       filename: "/etc/nginx/conf.d/discourse.conf"
       from: /server.+{/
       to: |
         server {
           if ($http_x_forwarded_proto = 'http'){
            return 301 https://$host$request_uri;
           }

It won’t be necessary for too long as Google will be adding an http to https redirector this quarter.