Prepara l'architettura multi-nodo (MediaMTX+ffmpeg) con assignment URL per sessione, admin di provision/drain e provider Cloud/DNS astratti verso mltv-stream.net. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
395 B
Ruby
16 lines
395 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Streams
|
|
module CloudProviders
|
|
def self.build(name = ENV.fetch("STREAM_CLOUD_PROVIDER", "local_lab"))
|
|
case name.to_s
|
|
when "local_lab" then LocalLab.new
|
|
when "proxmox_lab" then ProxmoxLab.new
|
|
when "hetzner" then Hetzner.new
|
|
else
|
|
raise Error, "STREAM_CLOUD_PROVIDER sconosciuto: #{name}"
|
|
end
|
|
end
|
|
end
|
|
end
|