流星 SSL 连接 [英] Meteor SSL connection

查看:17
本文介绍了流星 SSL 连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过 SSL/TLS 连接到我的 Meteor 项目.

因此我做了以下事情:

meteor 添加 force-ssl

在流星文件夹中.然后我用meteor"启动程序.

在本地主机上一切正常,但如果我想通过 http 提供 IP 和端口连接到服务器,我会被重定向到具有相同 IP 和无法连接消息"的 https 连接.

注意:我自己创建了一个证书并将其放入 Meteor/server 文件夹.

有人知道我的错误吗?

解决方案

如果需要启用 SSL 支持,适用于使用 Meteor Up 部署的 Meteor 应用程序.现在它支持 SSL.你只需要告诉 SSL 证书和密钥在哪里.

如果您不熟悉生成 SSL 证书的过程,请按照本指南.

<块引用>

免责声明:我是 Meteor Up 的作者.

I'm trying to connect to my Meteor project via SSL/TLS.

Therefore I did the following:

meteor add force-ssl

in the meteor folder. Then I start the programm with 'meteor'.

Everything is running fine on localhost, but if I want to connect to the server with giving the IP and Port over http, I get redirected to a https connection with the same IP and an 'Unable to connect message'.

Note: I created a certificate on my own an put it into the Meteor/server folder.

Does anyone know my mistake?

解决方案

If you need to enable SSL support for your Meteor app deployed with Meteor Up. Now it has the support for SSL. You just need to tell where the SSL certificate and the key are.

If you are not familiar with the process of generating a SSL certificate, follow this guide.

Disclaimer: I'm the author of Meteor Up.

这篇关于流星 SSL 连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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