【发布时间】:2016-12-12 20:21:20
【问题描述】:
我有一个在 App-Engine 上运行的 webapp2 WSGI 应用程序。当应用程序在生产环境中运行时,如何使用 HTTPS 方案配置其路由,但如果它在开发环境中运行,则应使用 HTTP 方案?
编辑:按照建议,我添加了一个指向 webapp2 路由方案的链接
http://webapp2.readthedocs.io/en/latest/guide/routing.html#restricting-uri-schemes
【问题讨论】:
-
您希望在生产环境中强制使用 https 吗?
标签: google-app-engine webapp2 google-app-engine-python