Google App Engine ManagedSSL无法正常工作

时间:2018-07-30 15:31:12

标签: node.js google-app-engine ssl

我正在使用Google App Engine托管我的Web应用程序Here's the app.yaml config I'm using,并使用通过GoDaddy购买的域来设置自定义域。我已经成功设置了自定义域,并且控制台显示ManagedSSL正在运行,当我访问该站点时The console showing the ssl for the custom domain is working仍然无法运行。 appspot.projectid.com网站确实具有https的功能,但自定义域却没有。

我已遵循Google Cloud和其他中等水平提供的教程,但此问题仍然存在。我是否需要在DNS上设置一些内容以允许ManagedSSL正常工作?

1 个答案:

答案 0 :(得分:1)

正如您所说,根据this postsecure: always在所有标准环境中仍然有效,但是在所有灵活环境中不推荐使用该安全选项 see documentation herehere for Node.js

如果您在当前环境中需要此功能,建议的解决方案需要更改您的应用程序代码。使用自定义HTTP标头X-Forwarded-Proto将HTTP通信重定向到HTTPS,或使用HTTP Strict Transport Security response header