From 355fc59721e997d5475ebb2f1a7a2278a6f46b44 Mon Sep 17 00:00:00 2001 From: Jeff Bryner Date: Tue, 2 Oct 2018 16:18:16 -0700 Subject: [PATCH] disable websockets --- meteor/server/mozdef.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meteor/server/mozdef.js b/meteor/server/mozdef.js index 9635935e..5e59fa5e 100644 --- a/meteor/server/mozdef.js +++ b/meteor/server/mozdef.js @@ -10,6 +10,8 @@ if (Meteor.isServer) { Meteor.startup(function () { // Since we only connect to localhost or to ourselves, adding a hack to bypass cert validation process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; + // We don't use websockets, turn 'em off to make for a faster startup + process.env.DISABLE_WEBSOCKETS = "1"; console.log("MozDef starting") //important to set this so persona can validate the source request @@ -49,7 +51,7 @@ if (Meteor.isServer) { value: enableClientAccountCreation }); - // newer meteor uses a key of forbidClientAccountCreation, so + // newer meteor uses a key of forbidClientAccountCreation, so // we negate the enableClientAccountCreation mozdef setting Accounts._options.forbidClientAccountCreation = !enableClientAccountCreation; mozdefsettings.insert({