From 909eb3439dae6b3c1cafc7d4e9375dfb039d88f8 Mon Sep 17 00:00:00 2001 From: Erik Petersen Date: Thu, 15 Feb 2024 10:51:46 -0800 Subject: [PATCH] add some ENV variables for video host --- lib/twilio-ruby/rest/video_base.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/twilio-ruby/rest/video_base.rb b/lib/twilio-ruby/rest/video_base.rb index f5643db75..3187221a8 100644 --- a/lib/twilio-ruby/rest/video_base.rb +++ b/lib/twilio-ruby/rest/video_base.rb @@ -18,9 +18,9 @@ class VideoBase < Domain # def initialize(twilio) super(twilio) - @base_url = "https://video.twilio.com" - @host = "video.twilio.com" - @port = 443 + @base_url = "#{ENV.fetch('VP_TWILIO_VIDEO_PROTOCOL', 'https')}://#{ENV.fetch('VP_TWILIO_VIDEO_HOST', 'video.twilio.com')}" + @host = ENV.fetch('VP_TWILIO_VIDEO_HOST', 'video.twilio.com') + @port = ENV.fetch('VP_TWILIO_VIDEO_PORT', 443) @v1 = nil end