feat!: setting AWS_DEFAULT_ACL default value in lms.py. (#32816)
* feat!: setting AWS_DEFAULT_ACL default value in lms.py. https://django-storages.readthedocs.io/en/1.10.1/backends/amazon-S3.html
This commit is contained in:
@@ -453,6 +453,11 @@ AWS_SECRET_ACCESS_KEY = AUTH_TOKENS.get("AWS_SECRET_ACCESS_KEY", AWS_SECRET_ACCE
|
||||
if AWS_SECRET_ACCESS_KEY == "":
|
||||
AWS_SECRET_ACCESS_KEY = None
|
||||
|
||||
# these variable already exists in cms with `private` value. django-storages starting `1.10.1`
|
||||
# does not set acl values till 1.9.1 default-acl is `public-read`. To maintain the behaviour
|
||||
# same with upcoming version setting it to `public-read`.
|
||||
AWS_DEFAULT_ACL = 'public-read'
|
||||
AWS_BUCKET_ACL = AWS_DEFAULT_ACL
|
||||
AWS_STORAGE_BUCKET_NAME = AUTH_TOKENS.get('AWS_STORAGE_BUCKET_NAME', 'edxuploads')
|
||||
|
||||
# Disabling querystring auth instructs Boto to exclude the querystring parameters (e.g. signature, access key) it
|
||||
|
||||
Reference in New Issue
Block a user