forked from External/greenlight
bbb_endpoint and bbb_secret can be configured with environment variables
This commit is contained in:
@ -1,19 +1,10 @@
|
||||
module ApplicationHelper
|
||||
def bbb_endpoint
|
||||
logger.info APP_CONFIG
|
||||
#if ((defined? APP_CONFIG).to_s == 'constant') && (APP_CONFIG.has_key?('bbb_endpoint'))
|
||||
# APP_CONFIG['bbb_endpoint']
|
||||
#else
|
||||
'http://test-install.blindsidenetworks.com/bigbluebutton/'
|
||||
#end
|
||||
Rails.application.secrets[:bbb_endpoint]
|
||||
end
|
||||
|
||||
def bbb_secret
|
||||
#if (defined? APP_CONFIG).to_s == 'constant' && (APP_CONFIG.has_key? 'bbb_secret')
|
||||
# APP_CONFIG['bbb_secret']
|
||||
#else
|
||||
'8cd8ef52e8e101574e400365b55e11a6'
|
||||
#end
|
||||
Rails.application.secrets[:bbb_secret]
|
||||
end
|
||||
|
||||
def random_password(length)
|
||||
|
@ -32,5 +32,4 @@ module BbbHelper
|
||||
return { :returncode => true, :join_url => join_url, :messageKey => "", :message => "" }
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user