Git Product home page Git Product logo

meteor-ssl's People

Contributors

enfascination avatar godadada avatar nourharidy avatar sudotong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

meteor-ssl's Issues

twitter login

accounts-twitter works without SSL
and has been found to work with nourharidy ssl
however it usually does not. still trying to find what
the 'key' is that does make it work ?

Socket hangup

I keep getting a socket hangup every now and then, after which the server restarts. Here's the error I'm getting

.meteor\packages\nourharidy_ssl\0.2.2\npm\node_modules\http-proxy\lib\http-proxy\index.js:119

(STDERR) throw err;
(STDERR) ^
(STDERR) Error: socket hang up
(STDERR) at createHangUpError (http.js:1477:15)
(STDERR) at Socket.socketCloseListener (http.js:1527:23)
(STDERR) at Socket.emit (events.js:95:17)
(STDERR) at TCP.close (net.js:466:12)

ROOT_URL value?

What should the Meteor env var ROOT_URL contains? Note: I have installed the force-ssl package.

android

the chrome inspector showed the app trying to use an http port.
must force-ssl be used to get android to work over https
https is a must now for webrtc

bad password read

I got this error Error: error:0906A068:PEM routines:PEM_do_header:bad password read. when I called SSL function.
How to pass password in SSL function?

error on run meteor

hello
i have a problem
Error: ENOENT: no such file or directory, open '-----BEGIN RSA PRIVATE KEY-----

can help me?
thanks

Documentation suggestion, dynamic private folder location

I'm using docker on my server, so I don't want to hard code a value since it will be different on my localhost and on my server, so I suggest adding this to the documentation, it makes the location super simple, as you just put it in the private folder:

var key = process.env.PWD + '/private/app_example_com.key';
var cert = process.env.PWD + '/private/app_example_com.crt';
SSL(key, cert, 443);

ENAMETOOLONG: name too long, open '-----BEGIN RSA PRIVATE KEY----- .....

I get this error when starting the server:

Error: ENAMETOOLONG: name too long, open '-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAxmHLPwbm1B+4hOZGJ/r3MHpXVLfEd2ar9nGMIjsiLImikQQf
Z1ipsdaTAzZP...

Launched with this code:

Meteor.startup(() => {

  SSL(
    Assets.getText("localhost.key"),
    Assets.getText("localhost.cert"),
  443);

SSL is no defined

`Messages = new Mongo.Collection('messages');

Messages.allow({
update: function(userId, message) { return true; },
remove: function(userId, message) { return true; },
insert: function(userId) { return true; }
});
Meteor.startup(function() {
SSL('../../../../../private/server.key','../../../../../private/server.crt', 443);
});
`

what's wrong??????

crash on ssl

The program will from time to time die.

bundle2/bundle/programs/server/npm/node_modules/meteor/nourharidy_ssl/node_modules/http-proxy/lib/http-proxy/index.js:119
throw err;
^

Error: socket hang up
at createHangUpError (_http_client.js:202:15)
at Socket.socketCloseListener (_http_client.js:234:23)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at TCP._onclose (net.js:469:12)

Fix for issue #2 (socket hangup) not present in package installed by meteor

Hi,
I'm having a problem with socket hangup in this package which is driving me crazy.

I have noticed that this issue was resolved already in issue #2

however, the bug still appears in my project almost every time it rebuilds...
I have checked my meteor package cache and I noticed that the code there is completely different from the code that is here on github:

(function () {

///////////////////////////////////////////////////////////////////////
//                                                                   //
// packages/nourharidy:ssl/ssl.js                                    //
//                                                                   //
///////////////////////////////////////////////////////////////////////
                                                                     //
SSL = function(key, cert, port){                                     // 1
	var httpProxy = Npm.require('http-proxy');                          // 2
	var fs = Npm.require('fs');                                         // 3
	if(!port){                                                          // 4
		port = 443;                                                        // 5
	};                                                                  // 6
	httpProxy.createServer({                                            // 7
		target: {                                                          // 8
    		host: 'localhost',                                             // 9
    		port: process.env.PORT                                         // 10
  		},                                                               // 11
  		ssl: {                                                           // 12
    		key: fs.readFileSync(key, 'utf8'),                             // 13
    		cert: fs.readFileSync(cert, 'utf8')                            // 14
 		},                                                                // 15
 		ws: true,                                                         // 16
 		xfwd: true                                                        // 17
 	}).listen(port);                                                   // 18
};                                                                   // 19
                                                                     // 20
///////////////////////////////////////////////////////////////////////

}).call(this);

The path to file is: C:\Users\[USERNAME]\AppData\Local\.meteor\packages\nourharidy_ssl\0.2.2\os\packages\nourharidy_ssl.js

I have browsed through the entire package directory and there is no sign of the code that is here, on github (error handler on httpProxy).
The package version as you can see is 0.2.2, I have tried removing the package and deleting the folder from the cache then adding it again, without any luck.

What is wrong that I don't get the fix in the package? I'll have to either modify it locally or screw this entire package and just do the SSL function myself..

Cannot use without blaze-html-templates

I'm using vue and static-html package for handling html and so I can't have blaze-html-templates at the same time. But in your code you are referencing Template.registerHelper which breaks the code on non-blaze projects. Could you please make it not dependent on blaze templates? or make client helpers optional.

The problem is that when I try to change your package locally (just comment the Template. call) it get "Socket hang up" from proxy, it stops working suddenly. Any help?

Thanks a lot

Doesn't work without Blaze

I'm using angular2-meteor, which substitutes Angular 2 for Blaze templates. This package throws the following error: Uncaught ReferenceError: Template is not defined. I think all that is necessary is to add a check to the Template.registerHelper line. Is there a place to get the files so I could make this change, as this repository is empty?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.