I have my node sails project in Google App Engine in need to redirect http to https.
With google Docs, I need to add handlers with secure: always in app.yaml file to achieve secure redirection, But its not working for me.
My app.yaml
env: flex
runtime: nodejs
manual_scaling:
instances: 1
resources:
cpu: 2
memory_gb: 8
disk_size_gb: 200
handlers:
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301
env_variables:
SQL_PASSWORD: "------"
SQL_DATABASE: "-----"
INSTANCE_CONNECTION_NAME: "-----"
Am I missing anything.