bigbluebutton-Github/labs/meteor-client/config.coffee

47 lines
1.4 KiB
CoffeeScript
Raw Normal View History

2014-06-12 00:11:23 +08:00
# # Global configurations file
config = {}
# Default global variables
config.appName = 'BigBlueButton HTML5 Client'
config.maxUsernameLength = 30
config.maxChatLength = 140
## 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="
# 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"
config.redis.channels.toBBBApps.whiteboard = "bigbluebutton:to-bbb-apps:whiteboard"
# Logging
config.log = {}
config.log.path = if process?.env?.NODE_ENV == "production"
2014-06-12 03:26:46 +08:00
"/var/log/bigbluebutton/bbbnode.log"
else
"./log/development.log"
# Global instance of Modules, created by `app.coffee`
config.modules = null
2014-06-12 00:11:23 +08:00
Meteor.config = config