Google App Engine Use HTTPS Only (Redirect)

Dec 20, 2017
use secure: always in app.yaml

To enforce Google App Engine to serve using HTTPS only, use secure: always in app.yaml.

...
handlers:
- url: /static
  static_dir: static
  secure: always

- url: /favicon.ico
  static_files: static/favicon.ico
  upload: static/favicon.ico
  secure: always

- url: /.*
  script: app.app
  secure: always
...

Note: Google App Engine has managed ssl since Sep 2017.

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.