Skip to content

Commit

Permalink
Fix thumbnail storage setting
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Jul 25, 2023
1 parent c28bdd0 commit 98b4440
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ureport/settings.py.prod
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ AWS_STORAGE_BUCKET_NAME = 'dl-ureport'
AWS_S3_SECURE_URLS = True
STORAGES["default"] = {"BACKEND": "storages.backends.s3boto3.S3Boto3Storage"}

THUMBNAIL_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"

# these two settings will cause our aws files to never expire
# see http://developer.yahoo.com/performance/rules.html#expires
AWS_QUERYSTRING_AUTH = False
Expand Down
2 changes: 2 additions & 0 deletions ureport/settings.py.staging
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY', 'MISSING_AWS_SEC
AWS_STORAGE_BUCKET_NAME = 'dl-ureport'
STORAGES["default"] = {"BACKEND": "storages.backends.s3boto3.S3Boto3Storage"}

THUMBNAIL_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"

# these two settings will cause our aws files to never expire
# see http://developer.yahoo.com/performance/rules.html#expires
AWS_QUERYSTRING_AUTH = False
Expand Down

0 comments on commit 98b4440

Please sign in to comment.