0

こんにちは私はすべてのハンドラーをGoogleAppEngineプロジェクトでhttpsとしてロードしたいと思います。誰かがそれを行う方法を知ることができますか?すべてのハンドラーに適用できる構成はありますか?

4

2 に答える 2

1

app.yamlで、secure: alwayshttpsを必要とする各ハンドラーに使用します。例えば:

handlers:

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

安全なURLの詳細については、ドキュメントをご覧ください。

于 2012-08-14T05:51:45.187 に答える
1

webapp2 を使用していますか? webapp2 を使用すると、ルートに許可される URI スキームを指定できます。

webapp2.Route(r'/products', handler='handlers.ProductsHandler', name='products-list', schemes=['https'])

参照: http://webapp-improved.appspot.com/guide/routing.html

于 2012-08-14T10:17:07.400 に答える