Commits

Felipe Martín committed d3c408e

+ s3boto.py: Added also configuration option to allow connecting without HTTPS protocol (AWS_S3_USE_SSL)

  • Participants
  • Parent commits deee056
  • Branches custom_host

Comments (0)

Files changed (1)

File storages/backends/s3boto.py

     ))
     url_protocol = setting('AWS_S3_URL_PROTOCOL', 'http:')
     host = setting('AWS_S3_HOST', None)
+    use_ssl = setting('AWS_S3_USE_SSL', True)
     port = setting('AWS_S3_PORT', None)
 
     def __init__(self, acl=None, bucket=None, **settings):
                 self._connection = self.connection_class(
                     self.access_key,
                     self.secret_key,
+                    is_secure=self.use_ssl,
                     calling_format=self.calling_format
                 )
             else:
                 self._connection = self.connection_class(
                     self.access_key,
                     self.secret_key,
+                    is_secure=self.use_ssl,
                     calling_format=self.calling_format,
                     host=self.host,
                     port=self.port