Meteor SSL connection

2019-02-05 01:00发布

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?

标签: ssl meteor
2条回答
干净又极端
2楼-- · 2019-02-05 01:36

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.

查看更多
看我几分像从前
3楼-- · 2019-02-05 01:46

You can't just put the certificate inside Meteor/server folder. You will need a web server to proxy the request and configure that server with your certificate (Docs also say that, search for force-ssl: http://docs.meteor.com/)

I recommend you to put an nginx instance as the proxy. Here an example of how to do it: http://www.digicert.com/ssl-certificate-installation-nginx.htm

查看更多
登录 后发表回答