mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
Fix boto3 s3 signature (#2041)
This commit is contained in:
@@ -87,7 +87,7 @@ class S3Uploader(BaseUploader):
|
|||||||
endpoint = get_app_config("AWS_S3_ENDPOINT_URL")
|
endpoint = get_app_config("AWS_S3_ENDPOINT_URL")
|
||||||
client = boto3.client(
|
client = boto3.client(
|
||||||
"s3",
|
"s3",
|
||||||
config=Config(signature_version="v4"),
|
config=Config(signature_version="s3v4"),
|
||||||
aws_access_key_id=access_key,
|
aws_access_key_id=access_key,
|
||||||
aws_secret_access_key=secret_key,
|
aws_secret_access_key=secret_key,
|
||||||
endpoint_url=endpoint,
|
endpoint_url=endpoint,
|
||||||
|
|||||||
Reference in New Issue
Block a user