Skip to content

Commit 06f7eee

Browse files
committed
Set AWS_DEFAULT_ACL to None for S3 storage configurations
1 parent b436383 commit 06f7eee

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/settings/production.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
8383
AWS_STORAGE_BUCKET_NAME = env("DJANGO_AWS_STORAGE_BUCKET_NAME")
8484
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
85+
AWS_DEFAULT_ACL = None
86+
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings
8587
AWS_QUERYSTRING_AUTH = True
8688
# DO NOT change these unless you know what you're doing.
8789
_AWS_EXPIRY = 60 * 60 * 24 * 7

teleband/utils/storages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44
class StaticRootS3Boto3Storage(S3Boto3Storage):
55
location = "static"
6-
default_acl = "public-read"
6+
default_acl = None
77

88

99
class MediaRootS3Boto3Storage(S3Boto3Storage):
1010
location = "media"
11+
default_acl = None
1112
file_overwrite = False

0 commit comments

Comments
 (0)