ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: retention и стабильная загрузка аудио Voice Tasker

This commit is contained in:
DCCONSTRUCTIONS
2026-04-28 17:54:11 +03:00
parent d60c28ec04
commit b796a21852
10 changed files with 248 additions and 12 deletions
@@ -23,6 +23,8 @@ class S3Storage(S3Boto3Storage):
"""S3 storage class to generate presigned URLs for S3 objects"""
def __init__(self, request=None, is_server=False, use_internal_endpoint=False, **kwargs):
super().__init__(**kwargs)
# Get the AWS credentials and bucket name from the environment
self.aws_access_key_id = os.environ.get("AWS_ACCESS_KEY_ID")
# Use the AWS_SECRET_ACCESS_KEY environment variable for the secret key