I have a Python 3 app running on Google App Engine (flexible) without a custom domain. When the app routes from route '/' to '/form' it changes the protocol from https to http. Below is my app,yaml file:
runtime: python
env: flex
entrypoint: gunicorn -t 300 -b :$PORT main:app
runtime_config:
python_version: 3
manual_scaling:
instances: 1
resources:
cpu: 1
memory_gb: 3.5
disk_size_gb: 10
liveness_check:
check_interval_sec: 300
timeout_sec: 200
failure_threshold: 2
success_threshold: 2
handlers:
- url: /.*
secure: always
redirect_http_response_code: 301
script: auto
- url: /js
static_dir: static/js
I would like to serve all pages/ route using https. What am I doing wrong?
Thank you very much for your help.