зеркало из https://github.com/mozilla/MozDef.git
disable websockets
This commit is contained in:
Родитель
560bcbb3a6
Коммит
355fc59721
|
@ -10,6 +10,8 @@ if (Meteor.isServer) {
|
||||||
Meteor.startup(function () {
|
Meteor.startup(function () {
|
||||||
// Since we only connect to localhost or to ourselves, adding a hack to bypass cert validation
|
// Since we only connect to localhost or to ourselves, adding a hack to bypass cert validation
|
||||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
|
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")
|
console.log("MozDef starting")
|
||||||
|
|
||||||
//important to set this so persona can validate the source request
|
//important to set this so persona can validate the source request
|
||||||
|
@ -49,7 +51,7 @@ if (Meteor.isServer) {
|
||||||
value: enableClientAccountCreation
|
value: enableClientAccountCreation
|
||||||
});
|
});
|
||||||
|
|
||||||
// newer meteor uses a key of forbidClientAccountCreation, so
|
// newer meteor uses a key of forbidClientAccountCreation, so
|
||||||
// we negate the enableClientAccountCreation mozdef setting
|
// we negate the enableClientAccountCreation mozdef setting
|
||||||
Accounts._options.forbidClientAccountCreation = !enableClientAccountCreation;
|
Accounts._options.forbidClientAccountCreation = !enableClientAccountCreation;
|
||||||
mozdefsettings.insert({
|
mozdefsettings.insert({
|
||||||
|
|
Загрузка…
Ссылка в новой задаче