diff --git a/backend/src/main.py b/backend/src/main.py index 4d2b7669d..c20367b87 100644 --- a/backend/src/main.py +++ b/backend/src/main.py @@ -181,7 +181,9 @@ def upload_image(content: bytes, image_key: str): S3_URL_ENDPOINT = init_variable("S3_URL_ENDPOINT", "https://s3.gra.io.cloud.ovh.net/") S3_BUCKET_NAME = "basegun-s3" S3_PREFIX = os.path.join("uploaded-images/", os.environ["WORKSPACE"]) -s3 = boto3.resource("s3", endpoint_url=S3_URL_ENDPOINT) +s3 = boto3.resource( + "s3", endpoint_url=S3_URL_ENDPOINT, verify=os.environ.get("TMP_VERIFY_SSL", True) +) """ TODO : check if connection successful try: s3.meta.client.head_bucket(Bucket=S3_BUCKET_NAME)