nourharidy / meteor-ssl Goto Github PK
View Code? Open in Web Editor NEWSimple built-in Meteor SSL functionality for the first time
Home Page: https://atmospherejs.com/nourharidy/ssl
Simple built-in Meteor SSL functionality for the first time
Home Page: https://atmospherejs.com/nourharidy/ssl
There may be a bug in meteor-ssl:
ReferenceError: Template is not defined[Learn More] nourharidy_ssl.js:51:
The error location is here:
line 15 of file meteor-ssl/helpers.js
This may be similar to the bug discovered in other's code:
https://stackoverflow.com/questions/37600166/referenceerror-template-is-not-defined-meteor
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 ?
fails to return to the app after authenication via callback
https://github.com/interfaith/twitterlogin
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)
What should the Meteor env var ROOT_URL contains? Note: I have installed the force-ssl package.
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
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?
hello
i have a problem
Error: ENOENT: no such file or directory, open '-----BEGIN RSA PRIVATE KEY-----
can help me?
thanks
twitter login FAILS for https
is there a way to login via http
THEN change to https ?
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);
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);
You tell on documentation to put file on private folder, but how I can pass this argument on SSL()
function? You can show an example?
I try with http://docs.meteor.com/#/full/assets_getText but not work.
Thanks!
`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??????
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)
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..
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
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.