My application is deployed in Google AppEngine and my DNS is in GoDaddy.
My app.yaml is like such:
handlers:
- url: /.*
http_headers:
X-Forwarded-Proto: https
script: auto
secure: always
redirect_http_response_code: 301
- url: /
http_headers:
X-Forwarded-Proto: https
static_files: build/index.html
secure: always
redirect_http_response_code: 301
upload: build/index.html
- url: /(.*)$
http_headers:
X-Forwarded-Proto: https
static_files: build/\1
secure: always
redirect_http_response_code: 301
upload: build/(.*)
But when I test out my app url
https://[project-id].appspot.com shows a secure site but http://[project-id].appspot.com does NOT
How do I have http redirect to https? Do I have the right changes in app.yaml. Or is there something to be done from the GoDaddy DNS side?
Also, when I type in my domain into the url e.g. https://[domain].com it goes to secure site, but then I type http://[domain].com it got to 'Not Secure' site