Skip to content
Snippets Groups Projects
Commit 0e52c0ec authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Use AWS_PUBLIC_CUSTOM_DOMAIN as custom domain for PublicMediaStorage if set.

parent 875d320c
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,9 @@ class PublicMediaStorage(S3Boto3Storage):
if hasattr(settings, 'AWS_PUBLIC_BUCKET_NAME'):
bucket_name = settings.AWS_PUBLIC_BUCKET_NAME
if hasattr(settings, 'AWS_PUBLIC_CUSTOM_DOMAIN'):
custom_domain = settings.AWS_PUBLIC_CUSTOM_DOMAIN
file_overwrite = False
querystring_auth = False
url_protocol = 'https:'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment