bigbluebutton-Github/bigbluebutton-html5/config.js
Maxim Khlobystov 76aa113dda Autofixed most of the linter warnings related to the Airbnb JavaScript Style Guide.
Conflicts:
	bigbluebutton-html5/client/globals.js
	bigbluebutton-html5/client/views/whiteboard/whiteboard.js
	bigbluebutton-html5/server/collection_methods/users.js
	bigbluebutton-html5/server/server.js
2016-04-06 10:08:08 -03:00

107 lines
2.9 KiB
JavaScript
Executable File

// TODO: should be split on server and client side
// // Global configurations file
let config, file, transports, winston;
config = {};
// Default global variables
config.appName = 'BigBlueButton HTML5 Client';
config.bbbServerVersion = '1.0-beta';
config.copyrightYear = '2015';
config.html5ClientBuild = 'NNNN';
config.defaultWelcomeMessage = 'Welcome to %%CONFNAME%%!\r\rFor help on using BigBlueButton see these (short) <a href="event:http://www.bigbluebutton.org/content/videos"><u>tutorial videos</u></a>.\r\rTo join the audio bridge click the gear icon (upper-right hand corner). Use a headset to avoid causing background noise for others.\r\r\r';
config.defaultWelcomeMessageFooter = `This server is running a build of <a href='http://docs.bigbluebutton.org/1.0/10overview.html' target='_blank'><u>BigBlueButton ${config.bbbServerVersion}</u></a>.`;
config.maxUsernameLength = 30;
config.maxChatLength = 140;
config.lockOnJoin = true;
//// Application configurations
config.app = {};
//default font sizes for mobile / desktop
config.app.mobileFont = 16;
config.app.desktopFont = 14;
// Will offer the user to join the audio when entering the meeting
config.app.autoJoinAudio = false;
config.app.listenOnly = false;
config.app.skipCheck = false;
// The amount of time the client will wait before making another call to successfully hangup the WebRTC conference call
config.app.WebRTCHangupRetryInterval = 2000;
// Configs for redis
config.redis = {};
config.redis.host = '127.0.0.1';
config.redis.post = '6379';
config.redis.timeout = 5000;
config.redis.channels = {};
config.redis.channels.fromBBBApps = 'bigbluebutton:from-bbb-apps:*';
config.redis.channels.toBBBApps = {};
config.redis.channels.toBBBApps.pattern = 'bigbluebutton:to-bbb-apps:*';
config.redis.channels.toBBBApps.chat = 'bigbluebutton:to-bbb-apps:chat';
config.redis.channels.toBBBApps.meeting = 'bigbluebutton:to-bbb-apps:meeting';
config.redis.channels.toBBBApps.presentation = 'bigbluebutton:to-bbb-apps:presentation';
config.redis.channels.toBBBApps.users = 'bigbluebutton:to-bbb-apps:users';
config.redis.channels.toBBBApps.voice = 'bigbluebutton:to-bbb-apps:voice';
config.redis.channels.toBBBApps.whiteboard = 'bigbluebutton:to-bbb-apps:whiteboard';
config.redis.channels.toBBBApps.polling = 'bigbluebutton:to-bbb-apps:polling';
// Logging
config.log = {};
if (Meteor.isServer) {
if (process != null && process.env != null && process.env.NODE_ENV == 'production') {
config.log.path = '/var/log/bigbluebutton/bbbnode.log';
} else {
config.log.path = `${process.env.PWD}/log/development.log`;
}
// Setting up a logger in Meteor.log
winston = Winston; //Meteor.require 'winston'
file = config.log.path;
transports = [
new winston.transports.Console(), new winston.transports.File({
filename: file,
}),
];
Meteor.log = new winston.Logger({
transports: transports,
});
}
Meteor.config = config;