9

We have an image uploader that uploads to AWS, using django-storages. Right now it sends images over http but we want it to use https.

Googling didn't help me find a way to configure django-storages to do it. Does anyone know the best way to accomplish this, or any documentation that would point me in the right direction.

TylerH
  • 20,799
  • 66
  • 75
  • 101
ahalbert
  • 474
  • 1
  • 6
  • 15

1 Answers1

20

Looking at the source it appears you can enable HTTPS by setting AWS_S3_SECURE_URLS = True.

Zach Kelling
  • 52,505
  • 13
  • 109
  • 108
  • 1
    is there a clean method to switch it based on requested protocol? – digitalPBK Jan 19 '13 at 03:41
  • 2
    @digitalPBK `from boto.s3.connection import ProtocolIndependentOrdinaryCallingFormat AWS_S3_CALLING_FORMAT = ProtocolIndependentOrdinaryCallingFormat()` – tmitchell Mar 08 '13 at 06:35