強制 Google App Engine 使用 SSL(https)

最近用 Google App Engine 作了一個網頁 App,但沒注意到可否使用 SSL ( https )
問題紀錄在 StackOverFlow 上。
今天偶然看到相關敘述,如果想要使用 Secure URLs,只要在 app.yaml 裡面加上一個 secure 的參數即可

handlers:
- url: /youraccount/.*
  script: accounts.py
  login: required
  secure: always

這樣就完成了,網站看似就變得比較高級了~~

留言

這個網誌中的熱門文章

Anki 教學 - 基礎知識

Anki 教學 - 學習卡片

Anki 教學 - 牌組選項之新卡片