From 9eb671dfa1734cd988af49ccdf119ebc526197b7 Mon Sep 17 00:00:00 2001 From: Kastan Day Date: Wed, 20 Nov 2024 16:44:42 +0100 Subject: [PATCH] Minor change to enable self hosted MinIO instance compatability --- ai_ta_backend/database/aws.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ai_ta_backend/database/aws.py b/ai_ta_backend/database/aws.py index 68e61b68..9d2d46ed 100644 --- a/ai_ta_backend/database/aws.py +++ b/ai_ta_backend/database/aws.py @@ -11,6 +11,7 @@ def __init__(self): # S3 self.s3_client = boto3.client( 's3', + endpoint_url=os.environ.get('MINIO_API_URL'), # for Self hosted MinIO bucket aws_access_key_id=os.environ['AWS_ACCESS_KEY_ID'], aws_secret_access_key=os.environ['AWS_SECRET_ACCESS_KEY'], )