bbb_endpoint and bbb_secret can be configured with environment variables

This commit is contained in:
jfederico
2016-10-18 13:50:51 -04:00
parent c47bcd5aee
commit cd867f9e20
7 changed files with 12 additions and 17 deletions

View File

@ -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)

View File

@ -32,5 +32,4 @@ module BbbHelper
return { :returncode => true, :join_url => join_url, :messageKey => "", :message => "" }
end
end
end