Schema is required for S3 endpoints. (#66)

This commit is contained in:
Tyler Kennedy 2022-11-27 17:20:49 -05:00 committed by GitHub
parent 68d59b399e
commit 2d4cf3d56e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -301,7 +301,7 @@ if SETUP.MEDIA_BACKEND:
AWS_ACCESS_KEY_ID = parsed.username AWS_ACCESS_KEY_ID = parsed.username
AWS_SECRET_ACCESS_KEY = parsed.password AWS_SECRET_ACCESS_KEY = parsed.password
port = parsed.port or 443 port = parsed.port or 443
AWS_S3_ENDPOINT_URL = f"{parsed.hostname}:{port}" AWS_S3_ENDPOINT_URL = f"https://{parsed.hostname}:{port}"
else: else:
raise ValueError(f"Unsupported media backend {parsed.scheme}") raise ValueError(f"Unsupported media backend {parsed.scheme}")