Skip to content

Commit

Permalink
add some ENV variables for video host
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Petersen committed Feb 15, 2024
1 parent 3e82b82 commit 909eb34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/twilio-ruby/rest/video_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 909eb34

Please sign in to comment.