2014-11-10 22:43:32 +08:00
|
|
|
# TODO: should be split on server and client side
|
2014-06-12 00:11:23 +08:00
|
|
|
# # Global configurations file
|
|
|
|
|
|
|
|
config = {}
|
|
|
|
|
|
|
|
# Default global variables
|
|
|
|
config.appName = 'BigBlueButton HTML5 Client'
|
2014-09-26 04:02:38 +08:00
|
|
|
config.bbbServerVersion = '0.9.0'
|
|
|
|
config.dateOfBuild = 'Sept 25, 2014' #TODO
|
|
|
|
|
2014-06-12 00:11:23 +08:00
|
|
|
config.maxUsernameLength = 30
|
|
|
|
config.maxChatLength = 140
|
|
|
|
|
2014-06-12 01:12:51 +08:00
|
|
|
## Application configurations
|
|
|
|
config.app = {}
|
|
|
|
|
2014-11-28 07:24:14 +08:00
|
|
|
# server ip
|
|
|
|
config.app.serverIP = "http://192.168.0.119"
|
2014-12-11 02:56:25 +08:00
|
|
|
config.app.logOutUrl = "http://192.168.0.119:4000" # TODO temporary
|
2014-11-28 07:24:14 +08:00
|
|
|
|
|
|
|
# port for the HTML5 client
|
|
|
|
config.app.htmlClientPort = "3000"
|
2014-06-12 01:12:51 +08:00
|
|
|
|
|
|
|
# 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.users = "bigbluebutton:to-bbb-apps:users"
|
2014-07-29 23:03:19 +08:00
|
|
|
config.redis.channels.toBBBApps.voice = "bigbluebutton:to-bbb-apps:voice"
|
2014-06-12 01:12:51 +08:00
|
|
|
config.redis.channels.toBBBApps.whiteboard = "bigbluebutton:to-bbb-apps:whiteboard"
|
|
|
|
|
|
|
|
# Logging
|
|
|
|
config.log = {}
|
|
|
|
|
2014-11-10 22:43:32 +08:00
|
|
|
if Meteor.isServer
|
|
|
|
config.log.path = if process?.env?.NODE_ENV is "production"
|
|
|
|
"/var/log/bigbluebutton/bbbnode.log"
|
|
|
|
else
|
|
|
|
# logs in the directory immediatly before the meteor app
|
|
|
|
process.env.PWD + '/../log/development.log'
|
2014-10-25 02:02:01 +08:00
|
|
|
|
2014-11-10 22:43:32 +08:00
|
|
|
# Setting up a logger in Meteor.log
|
2014-11-13 05:04:03 +08:00
|
|
|
winston = Winston #Meteor.require 'winston'
|
2014-11-10 22:43:32 +08:00
|
|
|
file = config.log.path
|
|
|
|
transports = [ new winston.transports.Console(), new winston.transports.File { filename: file } ]
|
2014-10-25 02:02:01 +08:00
|
|
|
|
2014-11-10 22:43:32 +08:00
|
|
|
Meteor.log = new winston.Logger
|
|
|
|
transports: transports
|
2014-06-12 01:12:51 +08:00
|
|
|
|
2014-09-04 22:37:36 +08:00
|
|
|
Meteor.config = config
|