Google App Engine Node.js本地开发者服务器是否支持SSL? [英] Does Google App Engine Node.js local dev server support SSL?

查看:113
本文介绍了Google App Engine Node.js本地开发者服务器是否支持SSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了在本地测试我的nodejs Google App Engine应用程序,我根据github示例和文档。但是,如果不设置https模块并安装证书,节点不支持HTTPS。 Google Cloud SDK是否已经不支持本地开发服务器的SSL连接?我很惊讶,我没有看到这个功能。最初,我将需要它来测试Firebase云消息传递。

解决方案

SSL支持取决于本地服务器功能,而不是SDK本身。

与SDK捆绑在一起的开发服务器(仅用于标准环境应用程序!)根本不支持SSL: HTTPS上的dev_appserver.py



为您的灵活环境应用程序本地服务器是您的节点服务器。所以你可以设置HTTPS。或者您可以评估代理方法,此处记录了一个示例: Appengine - 本地开发服务器与https


To test my nodejs Google App Engine app locally, I run a local node instance per the github examples and the docs. But node does not support HTTPS without setting up the https module and installing a certificate. Does the Google Cloud SDK not already support SSL connections for local dev servers? I am surprised I am not seeing that feature. Initially I will need it to test Firebase Cloud Messaging.

解决方案

The SSL support depends on the local server capability, not on the SDK itself.

The development server bundled with the SDK (only used for standard environment apps!) doesn't support SSL at all: GAE dev_appserver.py over HTTPS

For your flexible environment app the local server is your node server. So you could set that up for HTTPS. Or you could evaluate the proxy approach, an example is documented here: Appengine - Local dev server with https

这篇关于Google App Engine Node.js本地开发者服务器是否支持SSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆