From 154bb883b6fcaa329148e93e9738d1d1d09a693e Mon Sep 17 00:00:00 2001 From: Jesus Federico Date: Mon, 8 Apr 2019 09:19:35 -0400 Subject: [PATCH] Make sure the loadbalancer URL is correct (#440) --- config/application.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/application.rb b/config/application.rb index cd0f3457..f65375a8 100644 --- a/config/application.rb +++ b/config/application.rb @@ -64,6 +64,10 @@ module Greenlight config.loadbalancer_secret = ENV["LOADBALANCER_SECRET"] config.launcher_secret = ENV["LAUNCHER_SECRET"] config.launcher_allow_user_signup = ENV["LAUNCHER_ALLOW_GREENLIGHT_ACCOUNTS"] + + # Fix endpoint format if required. + config.loadbalancer_endpoint += "/" unless config.bigbluebutton_endpoint.ends_with?("/") + config.loadbalancer_endpoint = config.loadbalancer_endpoint.chomp("api/") end # Specify the email address that all mail is sent from