简体   繁体   English

在Google Cloud Endpoints + App Engine上强制HTTPS

[英]force HTTPS on Google Cloud Endpoints + App Engine

I have a web service running on Google App Engine with Cloud Endpoints for security. 为了确保安全,我在带有Cloud Endpoints的Google App Engine上运行了一项Web服务。 My web service is running on node.js with express. 我的Web服务在带有express的node.js上运行。 I have: 我有:

schemes:
- "https"

in my openAPI swagger file but the paths still works with HTTP. 在我的openAPI swagger文件中,但路径仍可用于HTTP。 I want to make the web service SSL only. 我只想使Web服务成为SSL。 How can I block all HTTP requests? 如何阻止所有HTTP请求?

Modifying the app.yaml doesn't work for me because node.js environment doesn't support handlers. 修改app.yaml对我不起作用,因为node.js环境不支持处理程序。 I tried using the express-sslify module but it did not work as well. 我尝试使用express-sslify模块,但效果不佳。

Endpoints does not have the ability to block requests according to the scheme. 端点无法根据方案阻止请求。 Therefore, you cannot use Endpoints to perform blocking only HTTP requests. 因此,您不能使用端点仅执行阻止HTTP请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM