Support use remotedev
npm package field
This commit is contained in:
parent
227fe0bab3
commit
95bbaf2063
@ -2,15 +2,15 @@ module.exports = function(argv) {
|
|||||||
var SocketCluster = require('socketcluster').SocketCluster;
|
var SocketCluster = require('socketcluster').SocketCluster;
|
||||||
|
|
||||||
return new SocketCluster({
|
return new SocketCluster({
|
||||||
host: argv.hostname || null,
|
host: argv.hostname || process.env.npm_package_remotedev_hostname || null,
|
||||||
port: Number(argv.port) || 8000,
|
port: Number(argv.port || process.env.npm_package_remotedev_port) || 8000,
|
||||||
workerController: __dirname + '/worker.js',
|
workerController: __dirname + '/worker.js',
|
||||||
allowClientPublish: false,
|
allowClientPublish: false,
|
||||||
protocol: argv.protocol || 'http',
|
protocol: argv.protocol || process.env.npm_package_remotedev_protocol || 'http',
|
||||||
protocolOptions: !(argv.protocol === 'https') ? null : {
|
protocolOptions: !(argv.protocol === 'https') ? null : {
|
||||||
key: argv.key || null,
|
key: argv.key || process.env.npm_package_remotedev_key || null,
|
||||||
cert: argv.cert || null,
|
cert: argv.cert || process.env.npm_package_remotedev_cert || null,
|
||||||
passphrase: argv.passphrase || null
|
passphrase: argv.passphrase || process.env.npm_package_remotedev_passphrase || null
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user