Skip to content

Commit

Permalink
recording: Allow configuring recording metadata to use https
Browse files Browse the repository at this point in the history
This allows configuring a server to use https without having to edit
any ruby files directly.

(Ideally, the metadata files wouldn't include the server name/protocol
at all; that should be set dynamically by bbb-web, but this is what we
have for now.)
  • Loading branch information
kepstin committed Nov 6, 2015
1 parent 39cc6a8 commit fc29948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions record-and-playback/core/scripts/bigbluebutton.yml
Expand Up @@ -12,6 +12,7 @@ log_dir: /var/log/bigbluebutton
recording_dir: /var/bigbluebutton/recording
published_dir: /var/bigbluebutton/published
playback_host: 10.0.3.203
playback_protocol: http

# For DEVELOPMENT
# This allows us to run the scripts manually
Expand Down
Expand Up @@ -927,7 +927,8 @@ def processChatMessages
$process_dir = "#{recording_dir}/process/presentation/#{$meeting_id}"
BigBlueButton.logger.info("setting publish dir")
publish_dir = simple_props['publish_dir']
BigBlueButton.logger.info("setting playback host")
BigBlueButton.logger.info("setting playback url info")
playback_protocol = bbb_props['playback_protocol']
playback_host = bbb_props['playback_host']
BigBlueButton.logger.info("setting target dir")
target_dir = "#{recording_dir}/publish/presentation/#{$meeting_id}"
Expand Down Expand Up @@ -995,7 +996,7 @@ def processChatMessages
b.end_time(real_end_time)
b.playback {
b.format("presentation")
b.link("http://#{playback_host}/playback/presentation/0.9.0/playback.html?meetingId=#{$meeting_id}")
b.link("#{playback_protocol}://#{playback_host}/playback/presentation/0.9.0/playback.html?meetingId=#{$meeting_id}")
b.processing_time("#{processing_time}")
b.duration("#{recording_time}")
}
Expand Down

0 comments on commit fc29948

Please sign in to comment.