Skip to content

Commit

Permalink
Merge pull request #7942 from cfpb/fix/s3-urls
Browse files Browse the repository at this point in the history
Fix custom domain for S3 URLs
  • Loading branch information
chosak authored Aug 31, 2023
2 parents 1a84328 + e2b46e6 commit cff062e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cfgov/cfgov/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@
AWS_ACCESS_KEY_ID = os.environ["AWS_ACCESS_KEY_ID"]
AWS_SECRET_ACCESS_KEY = os.environ["AWS_SECRET_ACCESS_KEY"]
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
AWS_S3_CUSTOM_DOMAIN = os.environ.get("AWS_S3_CUSTOM_DOMAIN")
MEDIA_URL = os.path.join(
AWS_STORAGE_BUCKET_NAME + ".s3.amazonaws.com", AWS_LOCATION, ""
)
Expand Down

0 comments on commit cff062e

Please sign in to comment.