Try to use a 301 redirect to download directly from s3. Allow the s3 and userfiles to run without internet access.
This commit is contained in:
parent
82229fd8c8
commit
bf85013ef6
4 changed files with 50 additions and 14 deletions
|
@ -65,6 +65,9 @@ class Storage(object):
|
|||
return '{0}/{1}/{2}/{3}/diffs.json'.format(self.images, namespace,
|
||||
repository, image_id)
|
||||
|
||||
def get_direct_download_url(self, path, expires_in=60):
|
||||
return None
|
||||
|
||||
def get_content(self, path):
|
||||
raise NotImplementedError
|
||||
|
||||
|
|
Reference in a new issue