Logo e favicon nel header, partite programmate su web e mobile, reset password, pagine FAQ/sitemap, privacy/termini GDPR e icona Android «Match Live Tv». Co-authored-by: Cursor <cursoragent@cursor.com>
80 lines
1.9 KiB
Ruby
80 lines
1.9 KiB
Ruby
module MatchLiveTv
|
|
class << self
|
|
def jwt_secret
|
|
ENV.fetch("JWT_SECRET", Rails.application.secret_key_base)
|
|
end
|
|
|
|
def mediamtx_api_url
|
|
ENV.fetch("MEDIAMTX_API_URL", "http://localhost:9997")
|
|
end
|
|
|
|
def mediamtx_rtmp_url
|
|
ENV.fetch("MEDIAMTX_RTMP_URL", "rtmp://localhost:1935")
|
|
end
|
|
|
|
def mediamtx_webhook_secret
|
|
ENV.fetch("MEDIAMTX_WEBHOOK_SECRET", "change_me")
|
|
end
|
|
|
|
def reconnect_timeout_seconds
|
|
ENV.fetch("RECONNECT_TIMEOUT_SECONDS", "300").to_i
|
|
end
|
|
|
|
def hls_public_url
|
|
ENV.fetch("HLS_PUBLIC_URL", "http://localhost:8888")
|
|
end
|
|
|
|
def mediamtx_hls_url
|
|
ENV.fetch("MEDIAMTX_HLS_URL", "http://mediamtx:8888")
|
|
end
|
|
|
|
def app_public_url
|
|
ENV.fetch("APP_PUBLIC_URL", "http://localhost:3000")
|
|
end
|
|
|
|
def stripe_secret_key
|
|
ENV["STRIPE_SECRET_KEY"].presence
|
|
end
|
|
|
|
def stripe_webhook_secret
|
|
ENV["STRIPE_WEBHOOK_SECRET"].presence
|
|
end
|
|
|
|
def stripe_premium_light_price_id
|
|
ENV.fetch("STRIPE_PREMIUM_LIGHT_PRICE_ID", ENV.fetch("STRIPE_PREMIUM_PRICE_ID", ""))
|
|
end
|
|
|
|
def stripe_premium_full_price_id
|
|
ENV.fetch("STRIPE_PREMIUM_FULL_PRICE_ID", ENV.fetch("STRIPE_PREMIUM_PRICE_ID", ""))
|
|
end
|
|
|
|
def stripe_enabled?
|
|
stripe_secret_key.present?
|
|
end
|
|
|
|
def privacy_controller_name
|
|
ENV.fetch("PRIVACY_CONTROLLER_NAME", "Gestore del servizio Match Live TV")
|
|
end
|
|
|
|
def privacy_controller_email
|
|
ENV.fetch("PRIVACY_CONTACT_EMAIL", "privacy@matchlivetv.it")
|
|
end
|
|
|
|
def privacy_controller_address
|
|
ENV.fetch("PRIVACY_CONTROLLER_ADDRESS", "Indirizzo del titolare — configurare PRIVACY_CONTROLLER_ADDRESS")
|
|
end
|
|
|
|
def privacy_controller_vat
|
|
ENV["PRIVACY_CONTROLLER_VAT"].presence
|
|
end
|
|
|
|
def mail_from
|
|
ENV.fetch("MAILER_FROM", "Match Live TV <noreply@matchlivetv.it>")
|
|
end
|
|
|
|
def password_reset_expiry_hours
|
|
ENV.fetch("PASSWORD_RESET_EXPIRY_HOURS", "2").to_i
|
|
end
|
|
end
|
|
end
|