Replay fuori da Puma, fix ops cron e firma release Android.

Dopo auth Rails redirect a URL presigned su /media/ (edge → Garage); aumenta
RAILS_MAX_THREADS, corregge ingest log ops via stdin e keystore Play Console.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-13 22:59:15 +02:00
parent e1636139a9
commit 13390d8a3c
14 changed files with 214 additions and 11 deletions

View File

@@ -31,8 +31,12 @@ module Recordings
dest
end
def presigned_get_url(key:, expires_in: MatchLiveTv.replay_presigned_url_ttl_seconds)
@backend.presigned_get_url(key: key, expires_in: expires_in)
def presigned_get_url(key:, expires_in: MatchLiveTv.replay_presigned_url_ttl_seconds, response_content_disposition: nil)
@backend.presigned_get_url(
key: key,
expires_in: expires_in,
response_content_disposition: response_content_disposition
)
end
def local_path_for_key(key)
@@ -61,7 +65,7 @@ module Recordings
true
end
def presigned_get_url(key:, expires_in:)
def presigned_get_url(key:, expires_in:, response_content_disposition: nil)
nil
end
@@ -92,14 +96,15 @@ module Recordings
raise Error, e.message
end
def presigned_get_url(key:, expires_in:)
def presigned_get_url(key:, expires_in:, response_content_disposition: nil)
signer = Aws::S3::Presigner.new(client: client)
signer.presigned_url(
:get_object,
params = {
bucket: MatchLiveTv.replay_storage_bucket,
key: key,
expires_in: expires_in
)
}
params[:response_content_disposition] = response_content_disposition if response_content_disposition.present?
signer.presigned_url(:get_object, **params)
end
def local_path_for_key(_key)