2013-08-17 09:37:41 +08:00
|
|
|
# # Global configurations file
|
|
|
|
|
|
|
|
config = {}
|
|
|
|
|
2013-08-30 22:29:00 +08:00
|
|
|
# Default global variables
|
2013-10-29 01:23:15 +08:00
|
|
|
config.appName = 'BigBlueButton HTML5 Client'
|
2013-08-17 09:37:41 +08:00
|
|
|
config.maxUsernameLength = 30
|
|
|
|
config.maxChatLength = 140
|
|
|
|
|
2013-10-31 02:25:42 +08:00
|
|
|
# the path in which an image of a presentation is stored
|
|
|
|
config.presentationImagePath = (meetingID, presentationID, filename) ->
|
|
|
|
"bigbluebutton/presentation/#{meetingID}/#{meetingID}/#{presentationID}/png/#{filename}"
|
|
|
|
|
2013-08-30 22:29:00 +08:00
|
|
|
## Application configurations
|
|
|
|
config.app = {}
|
|
|
|
|
|
|
|
# Generate a new secret with:
|
|
|
|
# $ npm install crypto
|
|
|
|
# $ coffee
|
|
|
|
# coffee> crypto = require 'crypto'
|
|
|
|
# coffee> crypto.randomBytes(32).toString('base64')
|
|
|
|
config.app.sessionSecret = "J7XSu96KC/B/UPyeGub3J6w6QFXWoUNABVgi9Q1LskE="
|
2013-08-17 09:37:41 +08:00
|
|
|
|
2013-08-30 22:29:00 +08:00
|
|
|
# Configs for redis
|
2013-08-17 09:37:41 +08:00
|
|
|
config.redis = {}
|
2013-08-30 22:29:00 +08:00
|
|
|
config.redis.host = "127.0.0.1"
|
|
|
|
config.redis.post = "6379"
|
2014-04-25 05:33:59 +08:00
|
|
|
config.redis.timeout = 5000
|
2014-04-24 05:37:19 +08:00
|
|
|
config.redis.channels = {}
|
2014-05-09 05:32:09 +08:00
|
|
|
config.redis.channels.fromBBBApps = "bigbluebutton:from-bbb-apps:*"
|
2014-05-16 04:42:54 +08:00
|
|
|
config.redis.channels.toBBBApps = {}
|
|
|
|
config.redis.channels.toBBBApps.pattern = "bigbluebutton:to-bbb-apps:*"
|
2014-05-23 05:52:36 +08:00
|
|
|
config.redis.channels.toBBBApps.chat = "bigbluebutton:to-bbb-apps:chat"
|
2014-05-16 04:42:54 +08:00
|
|
|
config.redis.channels.toBBBApps.meeting = "bigbluebutton:to-bbb-apps:meeting"
|
2014-05-22 23:22:13 +08:00
|
|
|
config.redis.channels.toBBBApps.users = "bigbluebutton:to-bbb-apps:users"
|
2014-04-24 05:37:19 +08:00
|
|
|
config.redis.internalChannels = {}
|
|
|
|
config.redis.internalChannels.receive = "html5-receive"
|
|
|
|
config.redis.internalChannels.reply = "html5-reply"
|
|
|
|
config.redis.internalChannels.publish = "html5-publish"
|
2013-09-16 07:10:19 +08:00
|
|
|
|
2014-04-24 04:39:42 +08:00
|
|
|
# Logging
|
|
|
|
config.log = {}
|
2014-04-24 06:47:16 +08:00
|
|
|
|
|
|
|
config.log.path = if process.env.NODE_ENV == "production"
|
|
|
|
"/var/log/bigbluebutton/bbbnode.log"
|
|
|
|
else
|
|
|
|
"./log/development.log"
|
2014-04-24 04:39:42 +08:00
|
|
|
|
2013-09-16 07:10:19 +08:00
|
|
|
# Global instance of Modules, created by `app.coffee`
|
|
|
|
config.modules = null
|
2013-08-20 09:43:18 +08:00
|
|
|
|
2013-08-17 09:37:41 +08:00
|
|
|
module.exports = config
|