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,3 +0,0 @@
default:
bbb_endpoint: <%= ENV['BIGBLUEBUTTON_ENDPOINT'] %>
bbb_secret: <%= ENV['BIGBLUEBUTTON_SECRET'] %>

View File

@ -1 +0,0 @@
APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")[Rails.env]

View File

@ -10,13 +10,20 @@
# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.
default: &default
bbb_endpoint: <%= ENV['BIGBLUEBUTTON_ENDPOINT'] %>
bbb_secret: <%= ENV['BIGBLUEBUTTON_SECRET'] %>
development:
<<: *default
secret_key_base: d7d93ffde4e0eb407fd82d5ae207445834d2cef5acbfc2d42fa10be44f94a8342c82d2c9b4785e1e2ec9d135b7cd3dda443ea3da732ffb8ba182368f0909cfa5
test:
<<: *default
secret_key_base: 16b4c8a9b05f13aa2430fbe55cc675a7b323deedaceb761e6fbb5aace1353354b14813ad58e71db07e5345934713bcf3401c62dce79696574ddece2b5360d953
# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
<<: *default
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>